! NEdit Syntax Highlighting Patterns for SLP (Service Location Protocol) service ! registration config files (as found in /etc/slp.reg.d/). ! Tested with nedit 5.5 and openslp 1.2.0. ! ! Load this file by starting nedit with: ! ! nedit -import ! ! The patterns can then be saved permanently into nedit's own resource file ! by using Save Defaults from the Preferences menu. ! ! Note: This language mode's extension (*.reg) collides with nedit's default of ! recognising *.reg files as containing regular expressions. After loading these ! patterns with -import, there are 2 choices for using the *.reg extension with ! language modes as configured in ! nedit->Preferences->Default Settings->Language Modes: ! 1) Leave the setting for Regex to claim the .reg file name extension, and ! delete the same from the SLP language mode. ! 2) Delete the extension .reg from the Regex language mode and leave it with ! the SLP mode. If you're interested in using SLP you probably wnat this. ! ! Download: ! http://volker.top.geek.nz/soft/nedit/ ! and perhaps: ! ftp://ftp.nedit.org/pub/NEdit/contrib/highlighting/ ! ! Copyright (C) by Volker Kuhlmann , ! Released under the same license as NEdit itself, ! or, at your option, under the GNU General Public Licence, Version 2. ! ! ChangeLog: ! 0.9, 27 Mar 2008: Volker Kuhlmann ! - Initial release. nedit.languageModes: \ SLP:.reg:"^(service:|description=)":::::: nedit.highlightPatterns: \ SLP:1:0{\n\ README:"SLP Configuration File syntax highlighting patterns, version 0.9, Volker Kuhlmann":::Warning::\n\ comment:"^[ \\t]*[#;]":"$"::Comment::\n\ attrib_service:"^[ \\t]*(service)[^A-Za-z]":"$"::Keyword::\n\ attrib_service1:"([^:]+):([^,]*),([^,]*),(.*)":"$"::Plain:attrib_service:\n\ attrib_description:"^[ \\t]*(description)[=: ]":"$"::Keyword::\n\ attrib_scopes:"^[ \\t]*(?iscopes)[=: ]":"$"::Keyword::\n\ attrib:"^[ \\t]*[^:= ]+":"$"::Keyword::\n\ service:"\\1":""::Text Key:attrib_service1:C\n\ url:"\\2":""::Text Arg2:attrib_service1:C\n\ description:".":"$"::String:attrib_description:\n\ scopes:".":"$"::Text Key1:attrib_scopes:\n\ value:".":"$"::Plain:attrib:\n\ }