Notifications
Clear all

[Closed] Maxscript syntax highlighter

Hi, everyone.
Don’t know about you but i’m pretty unhappy with how forum display maxscript code that we post here.
So I tried to tackle this a little bit with a bunch of javascript regex on a client-side.
Default color theme can be modified and stored in browser localStorage quite easily but I’m not sure how to use this modified one for all the pages on this particular site.
Any suggestions are welcomed.
I’ll share it after some more polishing and bugtracking.

//youtu.be/gKccOrOKBMo

7 Replies

Wow! :applause:

nice and clean, good to everyone in this forum, especially for beginner like me

does copy/paste RTF not work?

tnx Denis, I’ve never heard of it before.
Saddest part is that my 2014×64 crashed each time I try to copy as rtf.
Anyway, how do I paste it here?

1 Reply
(@polytools3d)
Joined: 11 months ago

Posts: 0

‘Copy as RTF’ is broken in all versions I think.

Instead you can export the script as RTF, HTML, etc. Then you can parse HTM to make it compliant with the forum.

But I think your solution is better as we can setup the color theme we want locally for the whole forum.

If everyone uses its own color theme to put code here, the forum may become a visual mess.

User defined colors are now stored inside cookie.
Code window background color can be changed as well.

Download: maxscriptSyntaxHighlighter

Please note, that above script is for Greasemonkey Firefox Add-on
PM me if you’ll have issues using it.

Indeed – even in Max 2017 latest servicepacks it coldbloodedly crashes Max …
Please people report this – will do so too
http://download.autodesk.com/us/support/report_a_bug.html?SelProduct=3dsMax

UPDATE: looks like it might be a bug in the old Scintilla/SciTE component 3ds Max still uses ( frozen to V1.71 from 2006/2007 i think … )
http://osdir.com/ml/lib.scintilla.devel/2002-07/msg00084.html