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,
5 days ago You do not have access to view attachments
I downloaded Deja Vu Fonts and Open Sans Fonts but I don't know how to install then on AROS.
I tested the syntax highlighting using Annotate. It can be used but it's not visually appealing to me. It works.
You do not have access to view attachments
cdimauroJunior MemberPosted
4 days agoI suggest you to use a common format for the syntax highlight capability of the new editor.
The one from TextMate is very quell known.
I use Sublime Text (an editor with its core written in C++, but with Python embedded and control and enhance everything), which uses a YAML version of TextMate format, which is easier and more convenient to edit nowadays:
https://docs.sublimetext.io/guide/extensibility/syntaxdefs.html
https://www.sublimetext.com/docs/syntax.html
@retrofaza
Thanks for the link. That's what I was looking for.
@cdimauro
Thanks for the links for the syntax definition files. VSCode uses TextMate.Here's another example of TextMate highlighting that I found.
You do not have access to view attachments
In a way I kinda like the simplicity of the syntax highlighting from Scintilla. It's just enough to make the source code easier to navigate.
This is a screenshot of Scintilla on the right and the Rich Text Format exported from Scintilla and pasted in Microsoft Word. That's a nice feature in Scintilla "Copy as RTF" for syntax.
You do not have access to view attachments
AMIGASYSTEMDistro MaintainerPosted
23 hours agoIn any case, there is a version of VIM available on AROS 64-bit v11 that works very well following the latest updates
[url=https://www.arosworld.org/infusions/forum/index.php?viewforum&forum_id=16][b]AROS One All Thread[/b][/url]
[url=https://sites.google.com/view/arosone][b]AROS One Home Site[/b][/url]
[url=https://www.facebook.com/profile.php?id=100095334408019][b]AROS One Facebook[/b][/url]
Thanks. I'll give EdiSyn and VIM a try to see how it goes. If I like them I'll use them in the meantime. :-)
Version 1.01 of the Editor for Amiga OS3 had RGB pen colors. The AROS version of the Text Editor is a stripped down version of that.
Edited by miker1264 on 23-06-2026 20:35,
20 hours ago You do not have access to view attachments
I tried Vim Editor & EdiSyn and both have their merits. I like the color scheme for EdiSyn but for some reason Prefs don't work well.
Vim works using the Sorbet Color theme for some quick edits so it may be my current favorite editor.
I noticed in the Vim Editor some blue blocks at the end of some of the lines of code. I assumed they were trailing white spaces but I couldn't remove them using Vim in AROS.
So I opened the same source code file in Scintilla Text Editor. It had an option to remove trailing white space. So it removed the white space in 260 lines of code! I didn't know there were so many!
While I had the file open I wanted to look at what I thought was an indentation error caused by a bug in AROS Text Editor. Sure enough Scintilla showed little grey arrows before each line that had indentation errors. It had an option to fix indentation errors also.
Sometimes it's better to have more than one text editor. Sometimes there are errors in the code we can't see like indentation & white space.
Edited by miker1264 on 24-06-2026 11:49,
5 hours ago You do not have access to view attachments