You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I posted on stackoverflow, before I realized it would probably be a good idea to look for a dedicated comunity...
I'd like to customize the syntax highlighting in Notepad++ for liquid templates.
I've seen many and more answers for adding keywords to current keyword-lists, but this doesn't work for what I'm trying.
Actually, I would need to add some kind of "regular" keywords in langs.model.xml, like
\{\{.*?\}\}
or
\{%.*?%\}
But I'm not sure this is possible...
Note: I need this on top of HTML highlighting: symply configuring some custom language in language menu doesn't help, because then I lose all HTML highlighting.
The only place where I saw regex patterns used is in functionList.xml, I had a try there (with no success :-( ) in the PHP section, not finding a HTML section...
Is there a way to achieve this ?
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered:
I would like to know the way to achieve this too, as I'm heavily using Liquid (+Jekyll) for my static websites' templates and I'm using Notepad++ to write them at the moment.
@fpierrat@mnh48 You can't use full regex in langs.model.xml (but some not standard rules works, like ^), although I may be wrong. Such requirements you should addressed to https://sourceforge.net/p/scintilla/bugs/ for html lexer, but I doubt they will add support because this lexer is complex/old and templates for HTML are tons.
There are an enormous number of templating languages and they can not all have their own distinct set of lexical states, since Scintilla is limited to 256 states in total.
Before the HTML lexer can grow beyond 7 bit lexical values (128 lexical states) I want someone to come up with a plan on how to make different templating and scripting languages coexist.
Rejected until some progress is made on a plan for this lexer.
Hi,
I posted on stackoverflow, before I realized it would probably be a good idea to look for a dedicated comunity...
I'd like to customize the syntax highlighting in Notepad++ for liquid templates.
I've seen many and more answers for adding keywords to current keyword-lists, but this doesn't work for what I'm trying.
What i'd like to highlight -> patterns like
Actually, I would need to add some kind of "regular" keywords in langs.model.xml, like
\{\{.*?\}\}
or
\{%.*?%\}
But I'm not sure this is possible...
Note: I need this on top of HTML highlighting: symply configuring some custom language in language menu doesn't help, because then I lose all HTML highlighting.
The only place where I saw regex patterns used is in functionList.xml, I had a try there (with no success :-( ) in the PHP section, not finding a HTML section...
Is there a way to achieve this ?
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: