Many keywords are not detected (and coloured) if they are just followed with a comma "," without a space e.g. :
"MsgBox This is the 1-parameter method. Commas (,) do not need to be escaped." : MsgBox is detected.
"MsgBox, 4, , This is the 3-parameter method. Commas (,) do not need to be escaped." : MsgBox is not detected....
I have discovered Notepad++ syntax highlighting in :
<!-- m -->http://www.autohotke...topic19404.html<!-- m -->
[Moved from Bug Reports forum. ~jaco0646]
Bug in Notepad++ syntax highlighting
Started by
nigelle
, Dec 01 2009 09:57 PM
7 replies to this topic
#1
-
Posted 01 December 2009 - 09:57 PM
Just add comma to the operators. You can do it by clicking on icon with a small lightning, to the left of the macros.
#2
-
Posted 02 December 2009 - 09:17 AM
Long range :
As the syntax is distributed with AutoHotkey it should be corrected by AutoHotkey team. See : ...\AHotKey\Extras\Editors\Notepad++\Run this to install syntax file for Notepad++.ahk
Short range :
Thanks for your patch, I have found the "icon with a small lightning", I have tried some actions but my only result was to colour in red the whole text !
Please explain what I have to do...
As the syntax is distributed with AutoHotkey it should be corrected by AutoHotkey team. See : ...\AHotKey\Extras\Editors\Notepad++\Run this to install syntax file for Notepad++.ahk
Short range :
Thanks for your patch, I have found the "icon with a small lightning", I have tried some actions but my only result was to colour in red the whole text !
Please explain what I have to do...
#3
-
Posted 02 December 2009 - 12:00 PM
Sorry for previous unclear post.
Click mentioned before icon. In new window there should be a dropdown list next to the "User language" words. Choose there "AHK AutoHotkey", then go to the "Operators" tab and move comma from left list to right.
Click mentioned before icon. In new window there should be a dropdown list next to the "User language" words. Choose there "AHK AutoHotkey", then go to the "Operators" tab and move comma from left list to right.
#4
-
Posted 02 December 2009 - 12:10 PM
Fine : now it works !
Many thanks for your help.
Many thanks for your help.
#5
-
Posted 02 December 2009 - 01:33 PM
Another one... (I choose this thread since it's fairly new)
It expects pairs of %s. E.g.
(ignore the ;, forgot to delete it when i took the screenshot)
But looks like this:
I can hotfix it with a ;% at the end of each line like that.
Any better approaches? I tried playing around with the settings reached by the lightning bolt button, to no avail.
It expects pairs of %s. E.g.
... MsgBox, % 5000 * 200 + Sum ; return }Which tells Msgbox to evaluate subsequent stuff as an expression...
(ignore the ;, forgot to delete it when i took the screenshot)
But looks like this:
I can hotfix it with a ;% at the end of each line like that.
Any better approaches? I tried playing around with the settings reached by the lightning bolt button, to no avail.
#6
-
Posted 19 December 2009 - 01:24 AM
It can be fixed by disabling Delimiter 1 in the forth tab and modifying the second tab like this:
Of course it can be in group other than 3th (just the empty one).
Of course it can be in group other than 3th (just the empty one).
#7
-
Posted 19 December 2009 - 09:20 AM