[JSCRIPT]
function test() { alert('Hello'}; }
[END JSCRIPT]
[MENULIST_SPECS]
LISTSQL=GETSECTION
LISTCOUNTER=N
SHOWALLFIELDS=Y
LISTWIDTH=100%
SHOW=EVALSQL:Select val=case when '$EDIT'='TRUE' or '$PRINTABLE'='Y' then 'N' else 'Y' end
[END MENULIST_SPECS]
[MENULIST_LISTSQL_SECTION]
Select nt.type,
nt.sqlfield
from sometable
[END MENULIST_LISTSQL_SECTION]
As you can see we have lots of different stuff in there: NAME=VAL pairs, SQL, HTML, and JavaScript.
Does Notepad++ support type inside of type syntax highlighting? (eg. I can create a custom syntax highlighting type for my tool, but as mentioned my tool contains other languages)
Can I highlight NAME=VAL pairs where the NAME is one color and the VAL is a different color?
Can I highlight tags that contain different names? (ex. [MENULIST_SPECS] [END MENULIST_SPECS] or [WHATEVER_SPECS] [END WHATEVER_SPECS]
Thanks for any help!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At my work we have several custom tools that use text files containing various web content.
(Don't ask why we don't use XML or why this format is horrible... I wish I could change it)
Example content:
[PARAMETER]
NAME=someparam
TYPE=text
[END PARAMETER]
[PARAMETER]
NAME=myparam
TYPE=checkbox
[END PARAMETER]
[JSCRIPT]
function test() { alert('Hello'}; }
[END JSCRIPT]
[MENULIST_SPECS]
LISTSQL=GETSECTION
LISTCOUNTER=N
SHOWALLFIELDS=Y
LISTWIDTH=100%
SHOW=EVALSQL:Select val=case when '$EDIT'='TRUE' or '$PRINTABLE'='Y' then 'N' else 'Y' end
[END MENULIST_SPECS]
[MENULIST_LISTSQL_SECTION]
Select nt.type,
nt.sqlfield
from sometable
[END MENULIST_LISTSQL_SECTION]
[MENULIST_LIST_HTML_HEADER]
<TR>
<TD>
<TABLE WIDTH=100%>
<TR>
<TD CLASS="GTRSMALLLABEL" ALIGN=LEFT >Type</TD>
<TD CLASS="GTRSMALLLABEL" ALIGN=RIGHT>Entries</TD>
</TABLE>
</TD>
[END MENULIST_LIST_HTML_HEADER]
As you can see we have lots of different stuff in there: NAME=VAL pairs, SQL, HTML, and JavaScript.
Does Notepad++ support type inside of type syntax highlighting? (eg. I can create a custom syntax highlighting type for my tool, but as mentioned my tool contains other languages)
Can I highlight NAME=VAL pairs where the NAME is one color and the VAL is a different color?
Can I highlight tags that contain different names? (ex. [MENULIST_SPECS] [END MENULIST_SPECS] or [WHATEVER_SPECS] [END WHATEVER_SPECS]
Thanks for any help!!