Notepad++ styling language xml files
- PuzzledGreatly
- Posts: 1303
- Joined: 29 Sep 2013, 22:18
Notepad++ styling language xml files
I use notepad++ to edit ahk scripts and have an xml language file that colors comments in green. I just tried using a multiple file filter with fileselectfile and this uses a semicolon to separate the filters. All the text in the filter after the semi-colon has also gone green. This is disconcerting. Is there any way to add an exception to the xml file so that it only turns true comments green? Thanks.
Re: Notepad++ styling language xml files
Can you supply a code sample to reproduce?
- PuzzledGreatly
- Posts: 1303
- Joined: 29 Sep 2013, 22:18
Re: Notepad++ styling language xml files
Thanks for the reply:
Ideally the text ;for example should be green but the *.txt) should be black.
Code: Select all
FileSelectFile, deck, 3, %dir%, Select a Game List:, Documents(*.csv;*.txt) ;for example
Re: Notepad++ styling language xml files
Hmmm I see it too. I'm not sure though. I haven't used Notepad++ in a long time to edit AHK files. Technically, AHK comments must have white space before the semicolon OR start at the beginning of the line. I'm not sure how to force the space thing unfortunately. You might post this on the Notepad++ Community forum.
Re: Notepad++ styling language xml files
It seems AutoGUI highlights the comments correctly but it highlights some of the other things strangely too. This is part of the problem when strings aren't required to be within delimeters like " and '.
- PuzzledGreatly
- Posts: 1303
- Joined: 29 Sep 2013, 22:18
Re: Notepad++ styling language xml files
Thanks, using quotation marks works with fileselectfile so the issue is resolved in this case.
EDIT 2021-02-06: Using quotation marks fails! Further tests show in practice it breaks the filter.
EDIT 2021-02-06: Using quotation marks fails! Further tests show in practice it breaks the filter.
Who is online
Users browsing this forum: No registered users and 5 guests