! 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\ comment:";":"$"::Comment::\n\ keyword:"<(begin|end|exit|do|end do|do while|if|else|end if |return|break|continue|function|procedure|local|external|load|record|stop record)>":::Keyword::\n\ i_o:"<(addfile|addfiles|addfiles_GetVar|asciiread|asciiwrite|cbinread|cbinwrite|craybinrecread|fbindirread|fbindirSwap|fbindirwrite|fbinread|fbinrecread|fbinrecwrite|fbinwrite|readAsciiHead|readAsciiTable|v5d_close|v5d_create|v5d_write|v5d_write_var)>":::Identifier::\n\ parentheses:"[\\(|\\)]":::String::\n\ coord_subscript:"[{}]":::Preprocessor::\n\ supportfile_newline:"-\\>|\\\\":::Subroutine::\n\ attribute:"@":"=|;|,|\\)|\\(|$"::Plain::\n\ attribute_sub:".":::Identifier1:attribute:\n\ meta_syntax:"&|!|\\$":"=|;|,|\\)|\\(|$"::Plain::\n\ meta_syntax_sub:".":::Identifier1:meta_syntax:\n\ string:"""":""""::Plain::\n\ numeric constant:"<((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)?>":::Plain::\n\ nedit.languageModes: NCL:.ncl:::::: nedit.styles: Plain:black:Plain\n\ Comment:gray20:Italic\n\ Keyword:black:Bold\n\ String:darkGreen:Bold\n\ Preprocessor:RoyalBlue4:Bold\n\ Identifier:darkgreen:Bold\n\ Identifier1:RoyalBlue2:Plain\n\ Subroutine:chocolate:Plain\n\