Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Deep Toaster on March 07, 2011, 07:25:47 pm

Title: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 07, 2011, 07:25:47 pm
For Programmer's Notepad:For Notepad++:For gedit:
Quote
Programmer's Notepad is a great tool for developers, featuring syntax highlighting, parenthesis matching, and tag closing among other things. It's great for all your coding needs, but it also has a conspicuous lack of syntax support for Z80 assembly programs. This Scintilla scheme file adds Z80-specific syntax information for PN users to enjoy.
Quote
Notepad++ is a great tool for developers, featuring syntax highlighting, parenthesis matching, and automatic indentation among other things. It's great for all your coding needs, but it also has a conspicuous lack of syntax support for Z80 assembly programs. This language file adds Z80-specific syntax information for N++ users to enjoy.
Quote
gedit ("Text Editor" in newer versions of GNOME) is a great tool for developers, featuring syntax highlighting, parenthesis matching, and automatic indentation among other things. It's great for all your coding needs, but it also has a conspicuous lack of syntax support for Z80 assembly programs. This gedit language file adds Z80-specific syntax information for gedit users to enjoy.
Anyway, this is a dirty hack, but it should work. I'm cheating and using Scintilla's 68K Assembler lexer to read the scheme file, but Scintilla doesn't support Z80 ASM :P

Suggestions are VERY welcome. In particular I need suggestions on what certain commands should look like, which commands I need to support, etc.
Turns out it's a LOT easier to make language files for Notepad++ than for Programmer's Notepad, so here it is! Again, comments, suggestions, post below.Finally got around to making a gedit version. I had to make the XML file myself, but it was a lot simpler and better-documented than the PN version. (No idea why PN had to make theirs so confusing.)
(http://www.ticalc.org/archives/files/ss/817/81701.gif)(http://www.ticalc.org/archives/files/ss/817/81703.gif)(http://cemetech.net/img/ss/000531.gif)

Download (http://www.omnimaga.org/index.php?action=downloads;sa=view;down=668)

EDIT: No, this isn't a Scheme interpreter for calculators. Ask Spencer on RevSoft for that ;)
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: DJ Omnimaga on March 07, 2011, 07:26:51 pm
Ah nice, that would be very useful. Would this be useable with Notepad++ too, for example?
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 07, 2011, 07:28:22 pm
Nope, sorry. At least as far as I know. Not sure how N++ does schemes, so if it does work, let me know :)
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: DJ Omnimaga on March 07, 2011, 09:57:43 pm
Ah ok. I heard it did, so I thought I would suggest the idea in case it's true.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 08, 2011, 08:53:20 pm
Downloaded and installed N++ today, and it's a LOT easier to create languages for N++ than for PN. (I can see why so many people prefer N++.)

So here it is!

(http://cemetech.net/img/ss/000473.gif)

(See first post for download link.)
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: willrandship on March 08, 2011, 10:49:42 pm
I like Geany. Lightweight on the resources, unlike Eclipse and NetBeans, and feature-rich. If I just want syntax highlight I use gedit. Any chance for one of those?

A little painful to get geany on windows since you have to install gcc separately though.

You don't have to, of course, but I would like it if you did. Gedit's syntax highlighting is pretty easy to change, about like bash's, but I'm not sure about geany's
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 08, 2011, 11:29:39 pm
I like Geany. Lightweight on the resources, unlike Eclipse and NetBeans, and feature-rich. If I just want syntax highlight I use gedit. Any chance for one of those?

A little painful to get geany on windows since you have to install gcc separately though.

You don't have to, of course, but I would like it if you did. Gedit's syntax highlighting is pretty easy to change, about like bash's, but I'm not sure about geany's

I'm looking through some released theme files, and it doesn't look too hard to mod. I'll do it when I have the time :)
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: DJ Omnimaga on March 09, 2011, 12:26:56 am
Glad to see this released ;D. This should be helpful for people. :D
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 09, 2011, 11:53:03 pm
Well I didn't make the Geany version yet, but I got one for gedit (both Windows and Linux)!

(http://img859.imageshack.us/img859/1926/z80.gif)
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: DJ Omnimaga on March 10, 2011, 09:25:36 pm
Are you planning to make this available for as many editors as possible?
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Munchor on March 11, 2011, 01:09:43 pm
http://www.ticalc.org/archives/files/ss/816/81697.gif (http://www.ticalc.org/archives/files/ss/816/81697.gif)

I really was looking forward to this :)=
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 11, 2011, 01:31:18 pm
Are you planning to make this available for as many editors as possible?

Yep.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Eeems on March 11, 2011, 02:54:34 pm
The Gedit link is broken :(
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 11, 2011, 05:18:03 pm
Right, I haven't actually uploaded it yet. Hold on.

EDIT: Done.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Eeems on March 11, 2011, 06:33:47 pm
Thanks a bunch!
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: calcdude84se on March 11, 2011, 08:30:50 pm
Speaking of Spencer, I remember there being another z80 highlighting scheme for Notepad++ on Revsoft.
Can't remember where, though. At any rate, I'm using it ;D
Might give yours a try at some point, though.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: DJ Omnimaga on March 12, 2011, 02:12:24 am
http://www.ticalc.org/archives/files/ss/816/81697.gif (http://www.ticalc.org/archives/files/ss/816/81697.gif)

404 not found ???
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Darl181 on March 12, 2011, 02:19:17 am
Found two things
http://www.ticalc.org/archives/files/fileinfo/436/43629.html
http://www.ticalc.org/archives/files/fileinfo/436/43637.html
wait--nvm :P
http://www.ticalc.org/archives/files/fileinfo/816/81697.html doesn't exist, so i guess it got removed or something
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: DJ Omnimaga on March 12, 2011, 02:27:12 am
Maybe he uploaded the wrong screenshot and asked ticalc to remove it?
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 12, 2011, 09:46:35 am
Yeah, that was an old screenshot.

Found two things
http://www.ticalc.org/archives/files/fileinfo/436/43629.html
http://www.ticalc.org/archives/files/fileinfo/436/43637.html

Hey, looks like mine! :P
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Darl181 on March 12, 2011, 11:07:51 am
Wow, one would think you made those or something XD
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 13, 2011, 12:00:07 pm
So, does anyone else have suggestions for text editors I should port this to?
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Munchor on March 13, 2011, 04:58:56 pm
For the record: ret doesn't seem to work in Notepad++
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 13, 2011, 05:31:11 pm
Hmm, try putting a space after it and see if it works.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Munchor on March 13, 2011, 05:41:24 pm
That worked Deep Thought :)
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Scipi on March 13, 2011, 05:44:25 pm
Would it be possible to port this to Code::Blocks?
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 13, 2011, 05:44:48 pm
/me adds that on his list of ports
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Munchor on March 13, 2011, 05:45:34 pm
What about Eclipse? Not sure if it can be done.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 13, 2011, 05:48:46 pm
Hmm, looks like I'd have to recompile an entire source to add a language to Eclipse. So probably not, sorry.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Munchor on March 13, 2011, 05:50:06 pm
Hmm, looks like I'd have to recompile an entire source to add a language to Eclipse. So probably not, sorry.

Okay :)
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: willrandship on March 13, 2011, 07:29:39 pm
Yay for the Gedit one! It works fine.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 14, 2011, 12:04:08 am
Yay for the Gedit one! It works fine.

Still want a Geany version?
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: willrandship on March 14, 2011, 12:45:29 am
Preferably, but at least now I have a highlighter, Geany has really nice variable handling though, and word completion.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: DJ Omnimaga on March 14, 2011, 04:01:48 am
If you plan to port this to like 10 editors, wouldn't it be better to include all of them in one download, though? Just to not clutter the download section too much.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 14, 2011, 06:08:48 pm
Right, I should probably do that. I'll put them together when I do an update.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Munchor on March 25, 2011, 12:34:04 pm
Just installed it on gedit, worked just fine =D Ubuntu 10.04
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 25, 2011, 12:52:00 pm
Glad to hear :) And as an update, I won't be working on the Geany version or any other version any time soon (sorry willrandship).
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: mikehill2003 on March 25, 2011, 12:57:36 pm
Thanks a lot for this. It makes learning from (public) source code much easier on the eyes.
And it works awesome in gedit in Ubuntu 10.10
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 25, 2011, 01:06:57 pm
Thanks a lot for this. It makes learning from (public) source code much easier on the eyes.
And it works awesome in gedit in Ubuntu 10.10

The gedit version should work with anything that uses gtksourceview (all versions of gedit and Anjuta, among others) :)

And if anyone has any bugs, post a report at http://clrhome.co.cc/projects/bugs/ (http://clrhome.co.cc/projects/bugs/) (testing out my new bug report system).
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Munchor on March 26, 2011, 07:15:59 am
Thanks a lot for this. It makes learning from (public) source code much easier on the eyes.
And it works awesome in gedit in Ubuntu 10.10

The gedit version should work with anything that uses gtksourceview (all versions of gedit and Anjuta, among others) :)

And if anyone has any bugs, post a report at http://clrhome.co.cc/projects/bugs/ (http://clrhome.co.cc/projects/bugs/) (testing out my new bug report system).

In the bugs page, I got a PHP error, you'd better watch out, I have your FTP name now.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on March 26, 2011, 10:43:42 am
In the bugs page, I got a PHP error, you'd better watch out, I have your FTP name now.

Augh, database server's down :P

EDIT: Should be good now.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on May 15, 2011, 11:50:27 pm
Z80 Schemes for Notepad++, Programmer's Notepad, and gedit v1.5

(http://cemetech.net/img/ss/000531.gif)

http://www.omnimaga.org/index.php?action=downloads;sa=view;down=668
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Eeems on May 16, 2011, 10:00:56 am
Hmm, looks like I'd have to recompile an entire source to add a language to Eclipse. So probably not, sorry.
can't you just create a plugin/add-on?
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on June 01, 2011, 06:58:18 pm
Hmm, looks like I'd have to recompile an entire source to add a language to Eclipse. So probably not, sorry.
can't you just create a plugin/add-on?

Not sure how. I'll look into that when I have the time :\/

Updated again because I have no idea why I missed binary all this time. And I made changed the instructions to make them a lot clearer.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: calcdude84se on June 01, 2011, 10:20:15 pm
[hijack]I found the scheme I was using from RevSoft: http://www.revsoft.org/phpBB3/viewtopic.php?p=12770#p12770 (http://www.revsoft.org/phpBB3/viewtopic.php?p=12770#p12770). It also seems that Deep has posted his scheme there too, as I found while searching ;D[/hijack]
In other news, I still haven't tried your schemes, Deep :P
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: ZippyDee on June 02, 2011, 12:15:12 am
How can I use the gedit one for mac? I followed the instructions, but it doesn't show up in the syntax highlighting menu.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on June 02, 2011, 01:09:44 pm
For Mac you need to right click gedit.app > Show Package Contents, then copy xml.lang to Contents/Resources/share/gtksourceview-2.0/language-specs. I should put that in my readme.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on July 04, 2011, 02:12:09 pm
Update

Did a couple of new updates a few days ago. I don't actually remember what I changed, but it's something big, so go download it ;D

Same URL: http://www.omnimaga.org/index.php?action=downloads;sa=view;down=668

EDIT: Updated yet again with the gedit instructions for Mac I mentioned above.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Ashbad on July 04, 2011, 02:29:40 pm
I started using the N++ one and it's awesome :D. I was able to fix this easily, but the current version doesn't highlight SP as a register, and doesn't highlight bjump the same as bcall (in fact, it doesn't color it in at all).
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: Deep Toaster on July 04, 2011, 02:32:11 pm
I started using the N++ one and it's awesome :D. I was able to fix this easily, but the current version doesn't highlight SP as a register, and doesn't highlight bjump the same as bcall (in fact, it doesn't color it in at all).

Yeah, I haven't updated that one in a long, long time. First version of all three of them left out SP, SLIA, B_?JUMP, binary notation, and a bunch of other stuff.
Title: Re: Z80 Scheme for Programmer's Notepad and Notepad++
Post by: fb39ca4 on August 10, 2011, 03:20:39 pm
Does anyone here know how to create schemes for notepad2? I would do that if I knew how.