flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Syntax highlighting for Kate text editor

Author
Thread Post new topic Reply to topic
rCX



Joined: 29 Jul 2007
Posts: 172
Location: Maryland, USA
rCX 10 Jun 2009, 22:39
Attached is a syntax highlighting file for KDE's Kate text editor. To install copy "fasm.xml" to your "~/.kde/share/apps/katepart/syntax/" directory. (On my computer the directory is actually in "/usr/share/kde4/apps/katepart/syntax" ).

I want to eventually submit it to the project so any feedback is welcome.


Description:
Download
Filename: fasm highlighting for kate.tar.gz
Filesize: 4.25 KB
Downloaded: 917 Time(s)



Last edited by rCX on 10 Jun 2009, 22:46; edited 1 time in total
Post 10 Jun 2009, 22:39
View user's profile Send private message Reply with quote
rCX



Joined: 29 Jul 2007
Posts: 172
Location: Maryland, USA
rCX 10 Jun 2009, 22:44
Some examples...


Description:
Filesize: 81.31 KB
Viewed: 7665 Time(s)

4.png


Description:
Filesize: 84.76 KB
Viewed: 7665 Time(s)

2.png


Description:
Filesize: 78.55 KB
Viewed: 7665 Time(s)

1.png


Post 10 Jun 2009, 22:44
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4043
Location: vpcmpistri
bitRAKE 16 Jun 2009, 05:02
I believe it is helpful to distinguish between preprocessor keywords (macro, equ, rept, ...) and assembler keywords (if, repeat, ...). In the last picture I noticed the segment registers are not highlighted similar to other registers?

In the past, I color coded instructions for different purposes: minimum processor requirement, flags effected, pipeline, ... Of course, some of these had very limited use, but made some tasks easier imho.There are many tweaks which work with a person's coding style. Like making label which start at the beginning of a line bold (excluding local labels). Or, using different highlighting for strings which are single quoted verses double quoted.

Kate looks very pretty.
Post 16 Jun 2009, 05:02
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4043
Location: vpcmpistri
bitRAKE 17 Apr 2021, 11:22
https://kate-editor.org/

+ Distinguishes between instruction AND and operation AND, etc.
+ Control-flow high-lighting.
- Code folding doesn't work.
- Number format doesn't handle fasm's fancy stuff.

One of the best out-of-box experiences with fasm/fasmg I've seen in an editor. The high-lighting seems to have been done by someone that knows something about assembler. It's a huge download, but it does a lot. I see a lot of potential. If I spend more time with it, might get code folding working.

Current documentation on highlighting syntax:
https://docs.kde.org/trunk5/en/kate/katepart/highlight.html

Example:
https://kate-editor.org/syntax/data/html/highlight.asm-fasm.dark.html

Edit: found previous thread, so merged post to original.

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 17 Apr 2021, 11:22
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.