Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <symbols>
- <!--
- The <symbol> tag specifies what is being shown in the fuction popup.
- It features the following attributes, all optional if not noted otherwise:
- id
- Has to be a unique string. Has to be specified.
- image
- Specify an image includes in the application (no extension) or
- specify an image in this modes Resources directory (with extension)
- SubEthaEdit comes with the following images:
- Symbol#, SymbolC, SymbolE, SymbolF, SymbolF(), SymbolG, SymbolK,
- SymbolL, SymbolM, SymbolP, SymbolS, SymbolT, SymbolV, SymbolWarn
- indentation
- 0-15 The level of indentation
- font-weight
- normal Normal font-weight (default)
- bold Bold text in popup
- font-style
- normal Normal font-weight (default)
- italic Bold text in popup
- The example shows an symbol name "First example" with the image SymbolM
- and an indentation of 1.
- -->
- <symbol id="adproc" image="Symbola">
- <regex>^[\t ]*ad_proc[\t ]+((?:-[a-zA-Z]+[\t ]+)*([a-zA-Z_:0-9]+))[^\n^\r]*</regex>
- <postprocess>
- <find>^((?:-[a-zA-Z]+[\t ]+)*)([a-zA-Z_:]+)</find>
- <replace>\2 \1</replace>
- </postprocess>
- </symbol>
- <symbol id="mvcproc" image="SymbolM">
- <regex>^[\t ]*(mvc_proc[\t ]+(?:-[a-zA-Z]+[\t ]+)*[^\n^\r]*::(?:[a-zA-Z_0-9]*)[^\n^\r]*{[^{}]*(?:{[^{}]*}[^{}]*)*}[^{]*{[\t \r\n]*(?:(?:GET|POST) on[^\n^\r^}]*))</regex>
- <postprocess>
- <find>mvc_proc[\t ]+(?:-[a-zA-Z]+[\t ]+)*[^\n^\r]*::([a-zA-Z_0-9]*)[^\n^\r]*{[^{}]*(?:{[^{}]*}[^{}]*)*}[^{]*{[\t \r\n]*((?:GET|POST) on[^\n^\r^}]*)</find>
- <replace>\2 (\1)</replace>
- </postprocess>
- </symbol>
- <symbol id="proc" image="SymbolP">
- <regex>[\n\r][\t ]*proc[\t ]+(?:-[a-zA-Z]+[\t ]+)*(?:[a-zA-Z_]+::)*([a-zA-Z_]+)[^\n^\r]*</regex>
- </symbol>
- <symbol id="Bookmark" font-weight="normal" font-style="normal" image="SymbolMark" indentation="0" ignoreblocks="no" show-in-comments="yes">
- <regex>[\n\r][\t ]*#[\t ]*!(.+)[\r\n]</regex>
- </symbol>
- <symbol id="conflict" font-weight="bold" image="SymbolWarn" indentation="0" ignoreblocks="no">
- <regex>^<<<<<<<(.|\r|\n)*=======(.|\r|\n)*>>>>>>></regex>
- <postprocess>
- <find>.*</find>
- <replace>Versioning conflict!</replace>
- </postprocess>
- </symbol>
- </symbols>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement