6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 7:44 pm

All times are UTC




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: ASCII character set
PostPosted: Sat Aug 11, 2018 1:18 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
This is my 65 family config for NotePad++


Attachments:
65xx.zip [1.18 KiB]
Downloaded 199 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
Top
 Profile  
Reply with quote  
 Post subject: Re: ASCII character set
PostPosted: Sat Aug 11, 2018 3:08 pm 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1952
Location: Sacramento, CA, USA
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)


Top
 Profile  
Reply with quote  
 Post subject: Re: ASCII character set
PostPosted: Sat Aug 11, 2018 4:24 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Oh, thanks for sharing your xml file, Andrew!


Top
 Profile  
Reply with quote  
 Post subject: Re: ASCII character set
PostPosted: Sun Aug 12, 2018 3:55 am 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: ASCII character set
PostPosted: Sun Aug 12, 2018 12:52 pm 
Offline

Joined: Mon May 21, 2018 8:39 am
Posts: 41
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: ASCII character set
PostPosted: Sun Aug 12, 2018 9:09 pm 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: ASCII character set
PostPosted: Mon Aug 13, 2018 10:20 am 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
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/blob/master/notepad/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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 79 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: