Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <symbols>
  3.  
  4. <!--
  5. The <symbol> tag specifies what is being shown in the fuction popup.
  6. It features the following attributes, all optional if not noted otherwise:
  7. id
  8. Has to be a unique string. Has to be specified.
  9. image
  10. Specify an image includes in the application (no extension) or
  11. specify an image in this modes Resources directory (with extension)
  12. SubEthaEdit comes with the following images:
  13. Symbol#, SymbolC, SymbolE, SymbolF, SymbolF(), SymbolG, SymbolK,
  14. SymbolL, SymbolM, SymbolP, SymbolS, SymbolT, SymbolV, SymbolWarn
  15. indentation
  16. 0-15 The level of indentation
  17. font-weight
  18. normal Normal font-weight (default)
  19. bold Bold text in popup
  20. font-style
  21. normal Normal font-weight (default)
  22. italic Bold text in popup
  23.  
  24. The example shows an symbol name "First example" with the image SymbolM
  25. and an indentation of 1.
  26. -->
  27.  
  28. <symbol id="adproc" image="Symbola">
  29. <regex>^[\t ]*ad_proc[\t ]+((?:-[a-zA-Z]+[\t ]+)*([a-zA-Z_:0-9]+))[^\n^\r]*</regex>
  30. <postprocess>
  31. <find>^((?:-[a-zA-Z]+[\t ]+)*)([a-zA-Z_:]+)</find>
  32. <replace>\2 \1</replace>
  33. </postprocess>
  34. </symbol>
  35.  
  36. <symbol id="mvcproc" image="SymbolM">
  37. <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>
  38.  
  39. <postprocess>
  40. <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>
  41. <replace>\2 (\1)</replace>
  42. </postprocess>
  43. </symbol>
  44.  
  45. <symbol id="proc" image="SymbolP">
  46. <regex>[\n\r][\t ]*proc[\t ]+(?:-[a-zA-Z]+[\t ]+)*(?:[a-zA-Z_]+::)*([a-zA-Z_]+)[^\n^\r]*</regex>
  47. </symbol>
  48.  
  49. <symbol id="Bookmark" font-weight="normal" font-style="normal" image="SymbolMark" indentation="0" ignoreblocks="no" show-in-comments="yes">
  50. <regex>[\n\r][\t ]*#[\t ]*!(.+)[\r\n]</regex>
  51. </symbol>
  52.  
  53. <symbol id="conflict" font-weight="bold" image="SymbolWarn" indentation="0" ignoreblocks="no">
  54. <regex>^<<<<<<<(.|\r|\n)*=======(.|\r|\n)*>>>>>>></regex>
  55. <postprocess>
  56. <find>.*</find>
  57. <replace>Versioning conflict!</replace>
  58. </postprocess>
  59. </symbol>
  60. </symbols>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement