Thursday, October 24, 2024

Re: color coding for a custom language

> I have created a language specifically designed for making logic
> circuits but noticed vim has no idea how to color code it... how I
> start to teach it?
>
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>
Hi!

The mechanism for highlighting specific text is based on the `:match` command.

It requires a highlight group as first argument and a regex as second argument.
You can write a file with a `:match` per line, and source it for the appropriate filetype.

Help references:
`:h :match` / `:h ftdetect` / `:h :syntax`.

Tris'

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/YCbxKnWeysgj1tk8AAiplVhfCsOGWTzc_9YeiOxzfYCstGRM382ovd2_rsyldneH9tOE3hxLrPvskZtE3DrZ_6xMhAGH5Efsr47Gn_81bU0%3D%40protonmail.com.

No comments: