! Syntax highlighting patterns for Matlab ! ! INSTALLATION ! ! Load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! These comments will not appear in your ~/.nedit ! nedit.highlightPatterns: Matlab:1:0{\n\ Comment:"%":"$"::Comment::\n\ Comment in Octave:"#":"$"::Plain::\n\ Keyword:"<(break|clear|else|elseif|end|for|function|global|if|return|then|while)>":::Keyword::\n\ Transpose:"[\\w.]('+)":::Plain::\n\ Paren transposed:"\\)('+)":::Keyword::\n\ Paren transp close:"\\1":""::Plain:Paren transposed:C\n\ Parentheses:"[\\(\\)]":::Keyword::\n\ Brackets transposed:"\\]('+)":::Text Key1::\n\ Brack transp close:"\\1":""::Plain:Brackets transposed:C\n\ Brackets:"[\\[\\]]":::Text Key1::\n\ Braces transposed:"\\}('+)":::Text Arg::\n\ Braces transp close:"\\1":""::Plain:Braces transposed:C\n\ Braces:"[\\{\\}]":::Text Arg::\n\ String:"'":"'"::String::\n\ Numeric const:"<(((\\d+\\.?\\d*)|(\\.\\d+))([eE][\\+-]?\\d+)?)>":::Numeric Const::\n\ Three periods to end:"(\\.\\.\\.)":"$"::Comment::\n\ Three periods:"\\1":""::Keyword:Three periods to end:C\n\ Shell command:"!":"$"::String1::\n\ Comment in shell cmd:"%":"$"::Comment:Shell command:\n\ Relational operators:"==|~=|\\<=|\\>=|\\<|\\>":::Text Arg1::\n\ Wrong logical ops:"&&|\\|\\|":::Plain::\n\ Logical operators:"~|&|\\|":::Text Arg2::\n\ } nedit.languageModes: Matlab:.m .oct .sci:::::: ! generated with ./extract_lang.pl version 0.1