Jump to Content
Register
Log in
Forgot your password?
Hand made
4coder
Blog
Forums
twitter
4coder
»
Forums
← Back to index
Samuel Deboni
Samuel Deboni Fraga
5 posts / 1 project
https://github.com/SamuelDeboni https://gitlab.com/SamuelDeboni
#23566
How to create a custom lexer?
2 years, 5 months ago
Edited by
Samuel Deboni Fraga
on
October 21, 2020, 3:16pm
Reason: Initial post
I'm new to the 4coder customization layer, and I'm trying do add support for the zig programming language.
How can I create a custom lexer? and use it to have syntax highlighting on zig files.
mrmixer
Simon Anciaux
1274 posts
#23571
How to create a custom lexer?
2 years, 5 months ago
If you only want basic syntax highlighting you can do something like
"Adding keywords to the syntax highlighting"
from the wiki (using the
draw_string_highlights
method).
If you really want a lexer, you'd better ask Allen on the 4coder discord or by e-mail. To my knowledge it's kind of hard to do in the current version, but I've never tried it.
← Back to index
Log in
to reply