Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

Text Editors with Syntax Highlighting

Last updated on 12 hours ago
M
miker1264Software Dev
Posted 12 hours ago
I use AROS Text Editor on a regular basis to edit c source code. I've always wished that someone would add Syntax Highlighting and fix the annoying text indentation errors!

So this is what I did...

In order to integrate syntax highlighting the editor needs to be able to randomly change pen colors to render the tokens and non-tokens.

In Jed.c in the write_text function that draws the text in the rasterport I changed the foreground text pen color. First I changed it to light blue. But that color is available in prefs. So I changed to bright red just to be sure of the results.

Next I need to add a new function called "write_syntax" that will draw the colored and non-colored text based on token class or non-tokens which don't contain any keywords.

Actually, I might need a Syntax Parser too to isolate the tokens and non-tokens in a text string (syntax highlighting). ;-)
Edited by miker1264 on 19-06-2026 19:36, 12 hours ago
You do not have access to view attachments
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.
Users who participated in discussion: miker1264