Notepad++ 6502 Highlighting
Moderator: Moderators
Notepad++ 6502 Highlighting
I got bored a while back and made a 'User Defined Language' file that you can use with Notepad++. If anyone wants it, you can download it from my site: http://nesmods.com/resources/6502/.
Note: The reason I didn't provide a direct link is because it actually took me a little while to figure out how to get it 'installed' so I put a video tutorial on the page on how to do it.
Note: The reason I didn't provide a direct link is because it actually took me a little while to figure out how to get it 'installed' so I put a video tutorial on the page on how to do it.
- GradualGames
- Posts: 1106
- Joined: Sun Nov 09, 2008 9:18 pm
- Location: Pennsylvania, USA
- Contact:
I think I've seen a couple of others provide their own 6502 highlighters as well. I ended up hacking out my own, due to a need for seeing a totally black background. I've tried to use the global overrides but they don't usually look nice with built in language definitions or others' definitions.
One thing that I wish Notepad++ would do is add a feature where when you open a .asm file, your user-defined highlighter is used instead of the built in one. As far as I know there is no way to do this.
One thing that I wish Notepad++ would do is add a feature where when you open a .asm file, your user-defined highlighter is used instead of the built in one. As far as I know there is no way to do this.
I ended up making my own too, because my preferences are always slightly different... =)Gradualore wrote:I ended up hacking out my own, due to a need for seeing a totally black background.
Don't ask me what I did, but my Notepad++ highlights 6502 code in files with the "asm" extension automatically. I believe there I specified the extension(s) somewhere...One thing that I wish Notepad++ would do is add a feature where you can load a user defined language for a given extension. The only ones for which this works are the built in ones, as far as I know. (So the built in asm highlighter is set up for x86, not 6502).
- GradualGames
- Posts: 1106
- Joined: Sun Nov 09, 2008 9:18 pm
- Location: Pennsylvania, USA
- Contact:
Hmm, I'll have to take another look at that. I doubt it was dumb luck that it worked for you, I probably just didn't dig deep enough to make it work. All I did was go into I think view/user-defined-dialogue, and I did associate it with ".asm, " but so far npp still opens the default asm language. Did you actually replace the default one with your own or..?
- GradualGames
- Posts: 1106
- Joined: Sun Nov 09, 2008 9:18 pm
- Location: Pennsylvania, USA
- Contact:
Turns out the problem was, I had entered ".asm" instead of just "asm". When I changed it to "asm" my user defined lang overrode the default one. How refreshing to finally be able to open all my source files at once and not have to select my lang for each one I want to look at. I can't believe I put up with that for so long.
I think I had this problem before, just forgot about it.
For now I'm using Notepad++ but if my prototype for my ca65 text editor goes well, I may use it less for 6502 coding. The current concept is to allow syntax highlighting, pull down with name of symbols/function for finding them, suggestion for name based on the symbols defined in your code etc.
If it become more than a prototype, I may post it someday. For now I can only work only a few minutes per day during lunch time so I'm not expecting anything for a while. I have a few other ideas but unless I can make them work, I won't mention them yet.
For now I'm using Notepad++ but if my prototype for my ca65 text editor goes well, I may use it less for 6502 coding. The current concept is to allow syntax highlighting, pull down with name of symbols/function for finding them, suggestion for name based on the symbols defined in your code etc.
If it become more than a prototype, I may post it someday. For now I can only work only a few minutes per day during lunch time so I'm not expecting anything for a while. I have a few other ideas but unless I can make them work, I won't mention them yet.
Maybe that is me who am stupid, but I never got any of those downloaded .xml files to work (there 2 or 3 links around on this boards).
I made my own, but then I can use it but I have to manually select it every time I open a .asm file (which default to 386 ASM).
I made my own, but then I can use it but I have to manually select it every time I open a .asm file (which default to 386 ASM).
Useless, lumbering half-wits don't scare us.