ASCII character set
- BitWise
- In Memoriam
- Posts: 996
- Joined: 02 Mar 2004
- Location: Berkshire, UK
- Contact:
Re: ASCII character set
This is my 65 family config for NotePad++
- Attachments
-
- 65xx.zip
- (1.18 KiB) Downloaded 211 times
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: ASCII character set
Thanks, Andrew! I'm gonna give that config a spin for myself, spare time permitting.
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!
Mike B. (about me) (learning how to github)
Mike B. (about me) (learning how to github)
Re: ASCII character set
Oh, thanks for sharing your xml file, Andrew!
-
DerTrueForce
- Posts: 483
- Joined: 04 Jun 2016
- Location: Australia
Re: ASCII character set
I found a config for Notepad++ a while ago that allowed it to understand 6502 ASM.
First thing in the search results for "6502 assembly notepad++": https://github.com/tragicmuffin/6502-npp-syntax
Also, NPP does have something of an editor for language files, if you go Language -> Define your language.
First thing in the search results for "6502 assembly notepad++": https://github.com/tragicmuffin/6502-npp-syntax
Also, NPP does have something of an editor for language files, if you go Language -> Define your language.
Re: ASCII character set
Thank you all for your valuable help and ideas!
Currently I'm struggling to create my own xml file for Notepad++ (never used xml or Notepad++ before in my life)
Two things remain unsolved: a) How to colorize label names and how to create columns that act like a >space bar< been pressed one time. If I solve the aforementioned problems, syntax highlighting for Merlin-Pro will be 100% complete.
P.S. The downside of all these "general" 6502 assembly syntax highlighting files for the various text editors is that NO ONE makes use of the specific Merlin-Pro assembler syntax. All the pseudo-opcodes (directives), comment style, and various other stuff that distinguishes Merlin for anything else out there.
Currently I'm struggling to create my own xml file for Notepad++ (never used xml or Notepad++ before in my life)
Two things remain unsolved: a) How to colorize label names and how to create columns that act like a >space bar< been pressed one time. If I solve the aforementioned problems, syntax highlighting for Merlin-Pro will be 100% complete.
P.S. The downside of all these "general" 6502 assembly syntax highlighting files for the various text editors is that NO ONE makes use of the specific Merlin-Pro assembler syntax. All the pseudo-opcodes (directives), comment style, and various other stuff that distinguishes Merlin for anything else out there.
-
DerTrueForce
- Posts: 483
- Joined: 04 Jun 2016
- Location: Australia
Re: ASCII character set
I adapted the one I found for SB-assembler using the editor thing, after groping around in it a bit. I never touched the XML directly.
Colourising label names is probably not possible(I do without it), but I could be wrong. I'd take a look at one of the other language highlighters, see if they colourise such things as function names, and how they go about that.
I don't know what you mean by the creating columns thing. I'd just push the spacebar, myself. NPP does know about indenting, and does carry it over when you hit enter.
The reason nobody implements assembler-specific things into code highlighters is probably because there are too many of them with too many differences to make one that catches all of them correctly. It's not that hard to adapt an existing one, if memory serves. Again, you do not have to edit the xml directly. There is an editor of sorts.
Colourising label names is probably not possible(I do without it), but I could be wrong. I'd take a look at one of the other language highlighters, see if they colourise such things as function names, and how they go about that.
I don't know what you mean by the creating columns thing. I'd just push the spacebar, myself. NPP does know about indenting, and does carry it over when you hit enter.
The reason nobody implements assembler-specific things into code highlighters is probably because there are too many of them with too many differences to make one that catches all of them correctly. It's not that hard to adapt an existing one, if memory serves. Again, you do not have to edit the xml directly. There is an editor of sorts.
- BitWise
- In Memoriam
- Posts: 996
- Joined: 02 Mar 2004
- Location: Berkshire, UK
- Contact:
Re: ASCII character set
I reviewed my file and found that it was missing some 65816 opcodes. I've added them but also rearranged it so that the core 6502 opcodes and the additional 65C02 and 65C816 opcodes are in different groups with different colouring.
I've the new version put it here https://github.com/andrew-jacobs/dev65/ ... d/65xx.xml
I've the new version put it here https://github.com/andrew-jacobs/dev65/ ... d/65xx.xml
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs