Z80 syntax highlighting for Notepad++

Started by SyX, 19:37, 01 December 14

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SyX

Those days i'm passing too much time working in the Windows notebook, while thinking it was only temporary, i was neglecting my z80 sdk because of it. Well, no more lazy excuses for me, i have been using notepad++ (my favourite text editor is kate but i'm not going to install kde windows only for a text editor :P ) and it was time of having a nice Z80 colour highlighting file.

I have attached to the post, but it's not perfect, because i don't know how to control the ' in the EX AF,AF' instruction.

You can see in the picture the problem,  notepad++ thinks that is the start of a string. And if i only set " for strings, then AF' is not detected and not coloured at all. I use ' for chars and " for strings. I don't think it's possible to handle this in notepad++, but if somebody find a way, i'll be very grateful :)
[ You are not allowed to view this attachment ]
PS: The font is "consolas", a nice monospaced font for retro coding, even includes a pretty zero  :)

PS2: The assembly directives that i'm using are from VASM, but you only need to add the Maxam ones or the ones used by your favourite assembler :)

Joseman

Hi Syx

I can't make work your xml file on notepad++ last version

I go to "lenguaje" -> "definir idioma" -> "importar", the import is successful but the asm's texts are on plain black...

am i doing something wrong?





SyX

No problem, you only need to select it in the language menu, appears as practically the last option, "Assembly Z80". If you want to make automatically, change the file extension to other one as .z80 or .s, i used .asm that can collision with x86 assembly sources.

I have made a fix to how the comments are decoded, because there was a problem when two ; were in the same line.

If only i could fix the AF'...

arnoldemu

Notepad++ is my editor of choice on windows. I am looking forward to installing this into it.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

SyX

Quote from: arnoldemu on 22:25, 01 December 14Notepad++ is my editor of choice on windows. I am looking forward to installing this into it.
Yes, i have tested a few ones and i am too old for relearning vim :P And i liked a lot that you can extend its functionality with python code.

One last note until a few days (i'm taking my fly in two hours), i used the Deep Black style because it's nicer for my eyes, but the colours can be changed easily in case that you use other style.

Gryzor

Btw, Kate is being prepared for Windows...

robcfg

Quote from: arnoldemu on 22:25, 01 December 14
Notepad++ is my editor of choice on windows. I am looking forward to installing this into it.


One of my favourites, but as I'm now working on Mac, Linux and Windows, I went for Sublime Text. Powerful and available for all platforms.

Powered by SMFPacks Menu Editor Mod