Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.
Zero Tolerance for Disrespect

QuickBMS Notepad User-defined Language

Featured Replies

  • Author
  • Localization

puggsoy, posted Sun May 31, 2015 11:56 am (5506)


I use Notepad to create and edit QuickBMS scripts (makes indentation easier). However today I looked into making custom syntax colouring and such for it, and it wasn't too hard. Basically I just made it colour various commands and data types, as well as comments and strings. It makes script a bit more readable and less bland to look at. It also allows you to collapse if statements and loops.

I've attached an XML file with the language definition. To use it, in Notepad go to Language -> Define your language, then click Import and select the XML file. It should automatically detect .bms files to be displayed using that definition.

Hopefully this is helpful for some people, I definitely think it makes scripts easier to read :)
  • Author
  • Localization

aluigi, posted Sun May 31, 2015 2:16 pm (5509)


I have just updated it by adding NameCRC and Codepage plus all the remaining compression and encryption algorithm that have been introduced in the recent versions.
  • Author
  • Localization

puggsoy, posted Sun May 31, 2015 2:24 pm (5510)


Ah, didn't know that existed. That one's much better than mine :P

Guess I'll be using that now, thanks!
  • Author
  • Localization

Delutto, posted Tue Dec 25, 2018 12:48 am (41618)


aluigi wrote:
I have just updated it by adding NameCRC and Codepage plus all the remaining compression and encryption algorithm that have been introduced in the recent versions.

Sorry for the necropost but I can't finded this subject on another place so... there's some problem with the comment tags "/**/", you can see what I'm talking about in this script: http://aluigi.altervista.org/bms/nxpk.bms
  • Author
  • Localization

aluigi, posted Wed Jan 02, 2019 6:52 pm (41823)


@Delutto
Here I see no problems with nxpk.bms. The only "weird" thing is that both "if" and "endif" are red but the comment is perfectly handled.
  • Author
  • Localization

Delutto, posted Sun Jan 20, 2019 12:01 am (42548)


aluigi wrote:
@Delutto
Here I see no problems with nxpk.bms. The only "weird" thing is that both "if" and "endif" are red but the comment is perfectly handled.
Exactly, I was talking about the Np User-defined Language, not the script itself.
  • Author
  • Localization

z4ruz, posted Fri Jun 11, 2021 5:19 pm (64622)


Fixed.



There are two versions:
1) fixed as shown and exported (20 KB)
2) manually patched as text (27 KB)
  • Author
  • Localization

aluigi, posted Sat Jun 12, 2021 1:02 pm (64640)


Great! :D
  • Author
  • Localization

z4ruz, posted Wed Jun 16, 2021 6:26 pm (64734)


Fixing resulted issue. Also added (seek_set seek_cur seek_end) to 7th group, (exit) to 1st.
Enabled folding of comments. (compact, expand) There's a great plugin used to get context help: Language Help by Franco Stellari But it's fully functional for help files in specific formats.
Quote:
The help file path may point to a local CHM, HLP, or PDF files for keyword search.
Alternatively, the field may point to a command/file that will be shell executed.
This include HTML file both on the local machine and on the internet.
The other good solution would be console like help: getdstring /?
  • Author
  • Localization

z4ruz, posted Sat Jun 26, 2021 2:30 am (64914)


Show commands arguments and short description.Place xml in installDir\autoCompletion
  • Author
  • Localization

Ekey, posted Sat Jul 03, 2021 10:05 am (65012)


Noice :D
  • Author
  • Localization

z4ruz, posted Sat Jul 03, 2021 5:56 pm (65020)


Thanks!
NP doesn't allows space as function start, sadly. That's why question mark is used.
To change the descriptions, one can either modify the resulted xml or modify the powershell script and produce new xml.
Function overload is not supported, with single exception - and it looks great! Would be good to make it for all the functions.
If someone interested to have QBMS syntax in 010 Editor, there's draft with keywords only.
Also interested to add QBMS syntax in AkelPad.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.