dMZX Forums: Highlighting robotic in Notepad++ - dMZX Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Highlighting robotic in Notepad++

#1 User is offline   Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 02 January 2013 - 06:54 AM

>>> Notepad++ xml file <<<

Posted Image

Download the file above and import it into Notepad++ via Settings > Define Your Language > Import. Switch your theme to Zenburn or force the global background color to 63,63,63 (there's no way to do this from the highlighting xml unfortunately). Debytecode-isms should highlight correctly unless I missed something (that doesn't mean you can use them in normal MZX code, so don't).

Known issues (and I don't think they're fixable, at least from the UI):
  • o/a/x are incorrectly highlighted following numbers IE (64a'counter') due to NPP incorrectly detecting 64a as a name and not a number. If you put o/a/x in the operators list, it causes other issues.
  • && can not be highlighted separately due to conflicts with the & command.
  • The * command shows up in the operator color. If it is moved to keywords, it has the same issues as o/a/x.
  • For the same reason as the issue above, I have not added & or | to the operator list. ** is also missing because lazy


edit: pic

This post has been edited by Lachesis: 02 January 2013 - 07:06 AM

"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
2

#2 User is offline   CJA 

  • «≡larch bucket≡»
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,262
  • Joined: 23-June 05
  • Gender:Male
  • Location:......@.c....

Posted 04 February 2014 - 12:04 AM

bump. This is awesome.

Note that your language import menu may be under Language -> Define your language... (Notepad++ v6.5.3)

If you have trouble getting this to work, try deleting the language (from the Define your language... menu) and re-importing. Also try restarting Notepad++. That alone worked for me.

This works with the PortableApps version (which I think is 6.5.3) too! Essential part of a flash drive MZX workstation.
Need a dispenser here.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users