! ! Syntax Highlighting Patterns for PHP Smarty template language ! http://www.phpinsider.com/php/code/Smarty/ ! Written in NEdit 5.1.1 ! ! Version: 1.1 March 6th, 2001 ! Submitted by: Andrei Zmievski , Monte Ohrt ! ! import the pattern with: ! ! nedit -import smarty-5.1.pats ! ! 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. ! ! ! Smarty template files are recognized by either the .tpl extension, or ! this character string at the beginning of your Smarty template: ! ! {* Smarty *} ! nedit.highlightPatterns: \ Smarty:1:0{\n\ HTML Tag:"(\\<[\\l/][\\l\\d]*)":"(\\>)":"[^\\l\\d\\-. \\t\\n""']":Plain::\n\ HTML Tag coloring:"\\1":"\\1"::HTML element:HTML Tag:C\n\ Normal Variable:"\\{[ \\t]*(\\$(\\w+/)*\\w+(\\|\\w+(:[^|}]+)?)*)[ \\t]*\\}":::PHP Variable::\n\ Config Variable:"\\{[ \\t]*(#\\w+#(\\|\\w+(:[^|}]+)?)*)[ \\t]*\\}":::PHP Variable::\n\ Section Variable:"\\{[ \\t]*(%\\w+\\.\\w+%(\\|\\w+(:[^|}]+)?)*)[ \\t]*\\}":::PHP Variable::\n\ Normal variable coloring:"\\1":"\\1"::PHP keyword:Normal Variable:C\n\ Config variable coloring:"\\1":"\\1"::Text Key1:Config Variable:C\n\ Section variable coloring:"\\1":"\\1"::PHP Variable:Section Variable:C\n\ Normal Variable in Tag:"\\$(\\w+/)*\\w+(\\|\\w+(:[^|}]+)?)*":::PHP keyword:Tag command:\n\ Config Variable in Tag:"#\\w+#(\\|\\w+(:[^|}]+)?)*":::Text Key1:Tag command:D\n\ Section Variable in Tag:"%\\w+\\.\\w+%(\\|\\w+(:[^|}]+)?)*":::PHP Variable:Tag command:D\n\ Tag command:"(\\{)[ \\t]*(/?\\w+)":"(\\})"::PHP Variable::D\n\ Tag command name:"\\2":"\\2"::PHP Function:Tag command:DC\n\ Tag comment:"\\{[ \\t\\n]*\\*":"\\*[ \\t\\n]*\\}"::Comment::D\n\ HTML comment:"\\