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 :)
[attach=3]
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 :)
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?
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'...
Notepad++ is my editor of choice on windows. I am looking forward to installing this into it.
Quote from: arnoldemu on 21: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.
Btw, Kate is being prepared for Windows...
Quote from: arnoldemu on 21: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.
Quote from: SyX on 18:37, 01 December 14but if somebody find a way, i'll be very grateful :)
:P A bit late, but...
If you can work without single quote, one method would be to put in the fourth group a single entry
af' with the same color as the third group and activating the prefix mode. Also you must remove the open and close delimiter with a single quote.
Or use the well supported keyword exa instead
At the end, I simple fixed my local scintilla repository :P
Sorry, no idea about this xml formatting. How can I avoid black background when no dark mode? Is there a way not to set background, and be just the default one in notepad++?
Yes, you must enter inside all stylers (user defined language->define your language->User language:Assembly Z80) and activate the transparent option under the background color.
You should also change within keywords lists the foreground color (white) in the first group.