Page 2 of 2
Re: ASCII character set
Posted: Sat Aug 11, 2018 1:18 pm
by BitWise
This is my 65 family config for NotePad++
Re: ASCII character set
Posted: Sat Aug 11, 2018 3:08 pm
by barrym95838
Thanks, Andrew! I'm gonna give that config a spin for myself, spare time permitting.
Re: ASCII character set
Posted: Sat Aug 11, 2018 4:24 pm
by BigEd
Oh, thanks for sharing your xml file, Andrew!
Re: ASCII character set
Posted: Sun Aug 12, 2018 3:55 am
by DerTrueForce
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.
Re: ASCII character set
Posted: Sun Aug 12, 2018 12:52 pm
by Kris1978
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.
Re: ASCII character set
Posted: Sun Aug 12, 2018 9:09 pm
by DerTrueForce
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.
Re: ASCII character set
Posted: Mon Aug 13, 2018 10:20 am
by BitWise
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