Page 1 of 1

QuickBms Syntax Notepad++

Posted: Fri Dec 04, 2009 10:43 pm
by evilpie
I made some really not notable Syntax Highligther for Quickbms, its not perfect (yet).

Just add this:

Code: Select all

Removed,
download zip.
Into the file C:\Documents and Settings\Username\AppData?\Notpad++\userDefineLang.xml
Enter %APPDATA%\Notepad++\userDefineLang.xml in Start -> Run, thx aluigi :)
I am not hundred percent sure about the path, because i dont have a english system.

Cheers Evilpie

*Edit*

Re: QuickBms Syntax Notepad++

Posted: Sat Dec 05, 2009 12:30 am
by aluigi
excellent idea, I was thinking to it just a couple of days ago while watching the black-only font that was starting to become boring :)

you can add also the put putdstring and putct commands added in the last version of the quickbms.
then there are some small mistakes, for example the first line must be "<NotepadPlus>" without the '/' and the file where placing it is called UserDefineLang.xml (without 'd') which is loaded from the same folder of Notepad++ (at least here, I use the zip only package not the installer).
if the installer uses the user's path I guess the correct one should be %APPDATA%\Notepad++\userDefineLang.xml (place it in Start->run)

for the rest it works good, maybe would be good to improve it a bit adding also the Math/If operators (like '&=' and '&'), the TEMPORARY_FILE keyword, the list of encryption and compression names and so on (if you want I can do it, I have all the stuff listed here so it's a quick job)

Re: QuickBms Syntax Notepad++

Posted: Sat Dec 05, 2009 12:44 am
by evilpie
Thank you,

i've added the things you mentioned, but could you please add the alogs, its a bit more work if you dont have proper list.

Cheers evilpie

Re: QuickBms Syntax Notepad++

Posted: Sat Dec 05, 2009 1:28 am
by aluigi
if I have done everything correctly the following covers all the stuff supported by quickbms (current 0.3.10).
I can't paste it here because the forum returns an Internal Server Error if I do it, so I have attached it to the post

Re: QuickBms Syntax Notepad++

Posted: Sat Dec 05, 2009 1:42 am
by evilpie
Nice, this was fast.
I made one more change, now strings gets marked.

I've attached it to this post.

Cheers

Re: QuickBms Syntax Notepad++

Posted: Sat Dec 05, 2009 12:53 pm
by aluigi
do you know how to mark as comments also the strings like #mycomment and not only # comment?
a small thing, when I uploaded the script the first time I used >< (><) which was wrong so I immediately corrected it with <> but seems you already downloaded the first version with that little mistake

Re: QuickBms Syntax Notepad++

Posted: Sat Dec 05, 2009 1:19 pm
by evilpie
Okay i made this 2 minor fixes for #comment and ><.
This time i attached the zip to the first post :)

Cheers Evilpie

Re: QuickBms Syntax Notepad++

Posted: Sun Dec 06, 2009 8:44 am
by Mr.Mouse
Nice! :D

Re: QuickBms Syntax Notepad++

Posted: Wed Dec 26, 2012 5:40 pm
by AlphaTwentyThree
could you add the "include" ans "quickbmsver" function to the list please? I'm too dumb to figure it out myself... ;)

Re: QuickBms Syntax Notepad++

Posted: Thu Dec 27, 2012 10:53 am
by Dinoguy1000
This is awesome. I've tinkered with the custom syntax highlighting stuff in Notepad++ before, but never thought to do it for QuickBMS (or MexScript, for that matter). Great work, guys! :D

Re: QuickBms Syntax Notepad++

Posted: Thu Dec 27, 2012 3:05 pm
by aluigi
I have just finished to write a Notepad++ userDefineLang.xml from scratch:

http://aluigi.altervista.org/papers/bms ... neLang.xml

I have tried to add everything and, most important, I have tried to choose the best colors limiting the "xmas tree" effect and at the same time highlighting what it's most used and useful.

for example the counter variables like 'i' and 'j' are now in red bold trying to limit common mistakes like using them outside cycles or the same variable in nested cycles.

Re: QuickBms Syntax Notepad++

Posted: Fri Dec 28, 2012 4:40 pm
by AlphaTwentyThree
Thanks a lot for this Luigi! Magnificent update on the old xml! :D :D :D
Working with QuickBMS is so much smoother now!

Re: QuickBms Syntax Notepad++

Posted: Fri Dec 28, 2012 8:51 pm
by AlphaTwentyThree
Hm, keywords in the comments are marked with a color - should be grey. ;)

Re: QuickBms Syntax Notepad++

Posted: Sat Dec 29, 2012 11:17 pm
by aluigi
here I have tried to create a bms containing the following data and I don't see the problem, it's all gray:

Code: Select all

# log asdf
# open
#clog "asdf" OFFSET SIZE
# asdf encryption asdf
I use Notepad++ 6.2.3

Re: QuickBms Syntax Notepad++

Posted: Mon Dec 31, 2012 12:54 pm
by AlphaTwentyThree
Oh, sorry, I've checked again and you're right - it only seems to be the case with "if".