First verify in the syntax highlighting configuration dialog if UltraEdit really uses the wordfile directory which contains the modified Matlab.uew.
After renaming WORDFILE.TXT to Matlab.uew I would also change the first line of this wordfile to:
" Nocase Line Comment = % String Chars = ' DisableMLS
File Extensions = M
I think you did not find the matlab language in the menu because the name was M File
. And the file extension is not case sensitive and therefore m M
is not necessary, just M
is enough. DisableMLS
disables multi-line string highlighting. I don't know if Matlab supports multi-line strings or not. Because there is no escape character defined, I guess it does not support it. The default is that multi-line string highlighting is enabled and so I think DisableMLS
would be good.
And I would give the 4 color groups a name. For example
(Hope this is a correct name for the keywords in this color group.)
Everything else in this wordfile looks good. Keyword surface
is not correct sorted in and there are 2 duplicate words: inf Inf
and nan NaN
. They are duplicate because the language is defined as being not case sensitive.
I found out that on the Wordfiles
page also a Matlab wordfile on IDM's server is referenced and this wordfile is very similar to the one you downloaded. On the server of IDM there is a second Matlab wordfile
not referenced on the wordfiles download page. I'm not a Matlab expert and therefore can't evaluate which one is the better. I made my corrections on the referenced file matlab6.uew
It would be good if you can further improve this modified wordfile for Matlab by adding appropriate
/Indent Strings =
/Unindent Strings =
/Open Brace Strings =
/Close Brace Strings =
/Open Fold Strings =
/Close Fold Strings =
settings below the function list lines to the wordfile for using:auto indent
and unindent if indentations are used in Matlab files,auto-brace matching
for automatically highlighting matching braces,code folding
if Matlab files are structured in blocks and therefore code folding could be useful.
Finally send the further improved wordfile to IDM by email to update existing matlab6.uew.