You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notepad-plus-plus/PowerEditor/installer/functionList/latex.xml

32 lines
985 B

<?xml version="1.0" encoding="UTF-8" ?>
<!-- ==========================================================================\
| To learn how to make your own language parser, please check the following
| link: https://npp-user-manual.org/docs/function-list/
\=========================================================================== -->
<NotepadPlus>
<functionList>
<parser
displayName="LaTeX Syntax"
id ="latex_function"
commentExpr="(?x)
(%.*?$) # Comment
"
>
<function
mainExpr="(?x) # free-spacing (see `RegEx - Pattern Modifiers`)
(?im-s) # ignore case, ^ and $ match start/end of line, dot doesn't match newline
\\(begin|
part\*?|
chapter\*?|
section\*?|
subsection\*?|
subsubsection\*?|
paragraph\*?|
subparagraph\*?)
{.*}"
>
</function>
</parser>
</functionList>
</NotepadPlus>