|
|
#1 |
|
Member
Join Date: Sep 2008
Posts: 38
|
Hi there, would be wonderful that Notepad++ stopped highlighting the literal strings so it would be much nicer to code Handlers Snippets?.
I have been digging arround Notepad++ plug-ins forums and playing with the Notepad++ configurations files for hours with no good results; if anyone has achieved this or anything similar I would really greet the answer. Thanks for your Time. FF. |
|
|
|
|
|
#2 |
|
Legendary Member
Join Date: May 2006
Location: Arizona
Posts: 3,377
|
you could always remove the brackets when debugging. Granted you'll have to put them back in when you go to load it in game..
__________________
Author of GuildCraft, SickOfClickingDailies, and CursorCooldown "I was there in the beginning... and things were very different back then" --An Echo from a time before. |
|
|
|
|
|
#3 |
|
Member
Join Date: Sep 2008
Posts: 38
|
Xd
I know. That is what I want but ... If it is possible in a more automated way... Thanks any way. |
|
|
|
|
|
#4 |
|
Hero Member
Join Date: Apr 2006
Posts: 764
|
Notepad++ is based of of SciTE so I think this should work. The literal string matching in SciTE doesn't check for balanced sides it just checks for "[=*[" and "]=*]" so you can break it with nesting.
Try the following. str = [=[ --[[ ]] code here ]=] |
|
|
|
|
|
#5 | |
|
Asian Sheep Lover
Join Date: Aug 2007
Location: Singapore
Posts: 3,418
|
Quote:
str = [[ --[[ code here ]] would highlight incorrectly (it would in fact color the rest of the document as a comment). Of course my literal string example here wouldn't compile.
__________________
Author/Maintainer of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, Routes, HandyNotes and some others. Last edited by Xinhuan; 1 Week Ago at 01:34 AM. |
|
|
|
|
|
|
#6 |
|
Super Moderator
Join Date: Aug 2005
Location: Germany/Hamburg
Posts: 1,189
|
So its not exactly broken, as it apparently behaves like the Lua parser?
![]() Also, just for correctness, Notepad++ is NOT based on SciTE. Both Notepad++ and SciTE are based on the Scintilla Editor Framework (SciTE initially was a reference implementation), but Notepad++ extended the Syntax Highlighting itself alot, you can even define your own rules, if you wish.
__________________
Author of Ace3, Bartender, Mapster, HotCandy, and various small and helpful addons WoWAce Administrator and AddOn Moderator You can Donate if you want, any help is appreciated! |
|
|
|
|
|
#7 |
|
Hero Member
Join Date: Apr 2006
Posts: 764
|
I was just too lazy to lookup how to spell Scintilla.
Does this work? str = [[ --]] code here ]] I completely broke SciTE's syntax highlighting with something like this before. --[=[ code --[==[ --]=] code --]==] If you are wondering about my sanity, I would change to first line to have either 2 or 3 -'s and use it as a giant toggle. Last edited by Arrowmaster; 1 Week Ago at 10:22 AM. |
|
|
|
|
|
#8 |
|
Super Moderator
Join Date: Aug 2005
Location: Germany/Hamburg
Posts: 1,189
|
It shouldn't parse in Lua.
__________________
Author of Ace3, Bartender, Mapster, HotCandy, and various small and helpful addons WoWAce Administrator and AddOn Moderator You can Donate if you want, any help is appreciated! |
|
|
|
|
|
#9 | |
|
Asian Sheep Lover
Join Date: Aug 2007
Location: Singapore
Posts: 3,418
|
Quote:
str = [[ --]] code here ]] --[=[ code --[==[ --]=] code --]==] The underlined parts above are what is in "green comment colouring" in Notepad++.
__________________
Author/Maintainer of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, Routes, HandyNotes and some others. |
|
|
|
|
|
|
#10 |
|
Full Member
Join Date: Apr 2005
Posts: 119
|
You could always edit the source, its easy to do too.
I have one compiled for windows if you feel lazy: http://rapidshare.de/files/48657362/...r.dll.zip.html |
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
All times are GMT. The time now is 12:45 AM.
WowAce Forums






