! Symbol Highlighting Patterns for NCL [NCAR COmmand Language] ! ! Prototype ! ! ------------------------------------------------------------------------------ ! ! Highlighting Patterns for NCL ! ! In NEdit Version 5.1.0 and beyond, 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. ! ! In version 5.0, without -import, you must edit your .nedit file by hand and ! add the contents of each resource below to the corresponding list in your ! .nedit file. Be sure to separate new entries with \n, and continue resource ! strings by escaping all newlines within a resource value with \ (backslash), ! leaving only the last line of the resource value not ending in \. ! ! ------------------------------------------------------------------------------ nedit.highlightPatterns: \ NCL:1:0{\n\ Keyword:"<(begin|end|exit|do|end do|do while)>":::Keyword::\n\ Keyword:"<(if|else|end if|return|break|continue)>":::Keyword::\n\ Keyword:"<(function|procedure|local|external|load|record|stop record)>":::Keyword::\n\ Comment:";":"$"::Comment::\n\ ReassignSyntax:":=":::ReassignSyntax::\n\ IO_Syntax:"[-\\>]":::IO_Syntax::\n\ MetaSyntax:"@|&|!":::MetaSyntax::\n\ ArraySyntax:"\\|":::ArraySyntax::\n\ ArraySyntax:":":::ArraySyntax::\n\ ArraySyntax:"[\\(//\\)]":::ArraySyntax::\n\ Continuation:"\\\\":::Continuation::\n\ String:\"\"\"\":\"\"\"\"::String::\n\ StringSyntax:"[$]":::StringSyntax::\n\ Brackets:"[{}]":::SymbolSyntax::\n\ Numeric Const:"<[0-9]+(\\.[0-9]*)?([de][-+]?[0-9]*)?|\\.[0-9]+([de][-+]?[0-9]*)?>":::Numeric Const::D\n\ } nedit.languageModes: NCL:.ncl:::::: nedit.styles: Keyword:Black:Bold\n\ MetaSyntax:Blue:Bold\n\ SymbolSyntax:Black:Bold\n\ ReassignSyntax:Blue:Bold\n\ IO_Syntax:Blue:Bold\n\ Continuation:Blue:Bold\n\ Numeric Const:Black:Plain\n\ ArraySyntax:Black:Bold\n\ String:Black:Plain\n\ StringSyntax:Blue:Bold\n\ Comment:red:Plain