Re: color coding for a custom language

"'Tristan Kapous' via vim_use" <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <YCbxKnWeysgj1tk8AAiplVhfCsOGWTzc_9YeiOxzfYCstGRM382ovd2_rsyldneH9tOE3hxLrPvskZtE3DrZ_6xMhAGH5Efsr47Gn_81bU0=@protonmail.com>
> 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 [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/YCbxKnWeysgj1tk8AAiplVhfCsOGWTzc_9YeiOxzfYCstGRM382ovd2_rsyldneH9tOE3hxLrPvskZtE3DrZ_6xMhAGH5Efsr47Gn_81bU0%3D%40protonmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.