Created
February 4, 2015 18:33
-
-
Save zofrex/5e82b32be53a5d9cae55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment