Notifications
Clear all

[Closed] Very specific syntax highlighting question

Hey guys,

I know that it’s possible to change/modify the syntax highlighting inside the maxscript editor, but I’m not 100% sure what I need to change to do what I want (although a guy i used to work with had done this for me so I know it works!).

How can I make matching ( and ) colourise to say a green colour so the contrast they have with all the other parentesis in the script is noticeable? At present they are both a very similar blue which strains my eyes when I’m trying to find opening and closing ones!

Thanks in advance for any help!

1 Reply
 JHN

Copy this ( a dark scheme I use)


#~ Default font settings
font.base=font:DejaVu Sans Mono,size:10
font.comment=font:DejaVu Sans Mono,size:10
colour.code.comment.box=fore:#09C009,italics
colour.code.comment.line=fore:#09C009,italics

#~ Sets the color used for the caret (cursor).
caret.fore=#f92672
caret.line.back=#ff8800
caret.line.back.alpha=50

selection.alpha=66
selection.back=#0099FF
#~ selection.fore=#000000

# Default
style.MAXScript.32=$(font.base),fore:#f92672,back:#272822
# White space
style.MAXScript.0=fore:#808080
# Comment: /* */.
style.MAXScript.1=$(colour.code.comment.box),$(font.code.comment.box)
# Line Comment: --.
style.MAXScript.2=$(colour.code.comment.line),$(font.code.comment.line),eolfilled
# Number
style.MAXScript.3=fore:#ae81ff
# String
style.MAXScript.4=fore:#e6db74
# Verbatim strings
style.MAXScript.5=fore:#007F00,$(font.monospace),back:#8AFB8A,eolfilled
# End of line where string is not closed
style.MAXScript.6=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
# Identifiers
style.MAXScript.7=fore:#ffffff
# Operators
style.MAXScript.8=fore:#f92672,bold
# Keyword arg name
style.MAXScript.9=fore:#a6e22e
# Name value
style.MAXScript.10=fore:#e6db74
# Pathname
style.MAXScript.11=fore:#3F7F3F,$(font.monospace),back:#E0F0FF
# Keywords1 - Keywords
style.MAXScript.12=fore:#f92672,bold
# Keywords2 - Rollout controls
style.MAXScript.13=fore:#faaa3c,bold
# Keywords3 - Functions
style.MAXScript.14=fore:#0080ff
# Keywords4 - MXS Classes	--Dotnet controls
style.MAXScript.15=fore:#ff8800
# Keywords5 - MAXClasses	-- Node transform monitor
style.MAXScript.16=fore:#ff00ff
# Keywords6 - MAXSuperClasses  modifier helper etc
style.MAXScript.17=fore:#ff0000
# Keywords7 - Core interfaces
style.MAXScript.18=fore:#00ff00,italics
# Keywords8 - Object sets
style.MAXScript.19=fore:#D0B080,italics
# Keywords9 - StructDefs
style.MAXScript.20=fore:#804020,italics
# Keywords10 - Const reserved globals true false undefined etc
style.MAXScript.21=fore:#4488ff,italics
# Keywords11 - Reserved globals
style.MAXScript.22=fore:#B00040
# Keywords12 - User defined
style.MAXScript.23=fore:#FF0000,bold,italics

To your MXS_EditorUser.properties, and start changing colors.


# Operators
style.MAXScript.8=fore:#f92672,bold

Changes parenthesis colors, but also of all operators.

More on customizing the mxs editor can be read here : http://blog.subd.nl/

-Johan