Important information: this site is currently scheduled to go offline indefinitely by end of the year.

QuickBms Syntax Notepad++

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
evilpie
beginner
Posts: 23
Joined: Sun Nov 29, 2009 10:13 pm
Been thanked: 9 times

QuickBms Syntax Notepad++

Post 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*
You do not have the required permissions to view the files attached to this post.
Last edited by evilpie on Sat Dec 05, 2009 1:20 pm, edited 6 times in total.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: QuickBms Syntax Notepad++

Post 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)
evilpie
beginner
Posts: 23
Joined: Sun Nov 29, 2009 10:13 pm
Been thanked: 9 times

Re: QuickBms Syntax Notepad++

Post 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
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: QuickBms Syntax Notepad++

Post 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
You do not have the required permissions to view the files attached to this post.
evilpie
beginner
Posts: 23
Joined: Sun Nov 29, 2009 10:13 pm
Been thanked: 9 times

Re: QuickBms Syntax Notepad++

Post by evilpie »

Nice, this was fast.
I made one more change, now strings gets marked.

I've attached it to this post.

Cheers
Last edited by evilpie on Sat Dec 05, 2009 1:17 pm, edited 1 time in total.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: QuickBms Syntax Notepad++

Post 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
evilpie
beginner
Posts: 23
Joined: Sun Nov 29, 2009 10:13 pm
Been thanked: 9 times

Re: QuickBms Syntax Notepad++

Post by evilpie »

Okay i made this 2 minor fixes for #comment and ><.
This time i attached the zip to the first post :)

Cheers Evilpie
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Re: QuickBms Syntax Notepad++

Post by Mr.Mouse »

Nice! :D
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: QuickBms Syntax Notepad++

Post by AlphaTwentyThree »

could you add the "include" ans "quickbmsver" function to the list please? I'm too dumb to figure it out myself... ;)
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)
User avatar
Dinoguy1000
Site Admin
Posts: 786
Joined: Mon Sep 13, 2004 1:55 am
Has thanked: 154 times
Been thanked: 163 times

Re: QuickBms Syntax Notepad++

Post 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
Welcome to Xentax!

Rules | Requests | Wiki | Discord

If you run across a post that breaks the rules, please report the post - a mod or admin will handle it from there.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: QuickBms Syntax Notepad++

Post 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.
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: QuickBms Syntax Notepad++

Post 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!
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: QuickBms Syntax Notepad++

Post by AlphaTwentyThree »

Hm, keywords in the comments are marked with a color - should be grey. ;)
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: QuickBms Syntax Notepad++

Post 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
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: QuickBms Syntax Notepad++

Post by AlphaTwentyThree »

Oh, sorry, I've checked again and you're right - it only seems to be the case with "if".
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)
Post Reply