3
1
I'm creating my User Define Language in notepad++, and I have a delimiter set like this:
open: try
escape:
close: :
But when I type entry
, the try
gets highlighted, as the delimiter I've set. How can I block that from happening? Any help is welcome.
I'm using windows 8, with notepad++ Je Suis Charlie.
Delimiting doesn't seem as good a match for this case as code folding. Can you give some examples of what the
try
-:
pair should look like in context? – Nathan Tuggy – 2015-04-20T20:35:24.890It's for this use:
try
code
:
, and I want code to be highlighted, since I don't want the default color in there. – dccsillag – 2015-04-20T23:44:55.950Hmm. Yeah, I'm not sure N++ can do this easily; if you go and define a full language the way C#, say, is defined you could probably manage it but I don't know how much more work that would be. – Nathan Tuggy – 2015-04-20T23:55:33.883
I saw that creating a UDL in N++ creates a file. So maybe by editing that file directly, with a little bit of research, I would be able to do that so? – dccsillag – 2015-04-21T01:31:52.643
You could certainly try that, but the file, and I think even the XML schema, that it uses for UDLs is not the same as for normal languages, and I'm not sure even the format has enough flexibility. – Nathan Tuggy – 2015-04-21T01:36:02.403
That's right, but I saw that you're able to do that with keywords, so why not with delimiters? – dccsillag – 2015-04-21T01:40:33.863
When I was having a little look about defining a delimiter with a space in n++, I saw in the notepad++ site a page about the release of version 6.2, where they said that you were able to do that in there. From what I know, Je Suis Charlie was released after v6.2. Here's the link.
– dccsillag – 2015-04-21T01:52:06.417Notepad++ is now on version 6.7.7 – DavidPostill – 2015-04-21T07:00:47.540
I know, but than what's written in there should be true... Doesn't look like... – dccsillag – 2015-04-21T18:47:32.077