2021-03-23 01:50:16 +00:00
|
|
|
Vim syntax highlighting definitions.
|
2021-05-04 22:39:19 +00:00
|
|
|
|
|
|
|
Created by Elektron72 on github. Thanks!
|
2021-03-23 01:50:16 +00:00
|
|
|
|
|
|
|
|
2021-03-22 16:13:20 +00:00
|
|
|
To install:
|
2021-03-23 23:53:20 +00:00
|
|
|
Copy prog8.vim and prog8_builtins.vim into ~/.vim/syntax/. If you will never
|
|
|
|
use highlighting for built-in functions and variables, you do not need to
|
|
|
|
copy prog8_builtins.vim.
|
2021-03-22 16:13:20 +00:00
|
|
|
|
|
|
|
To enable:
|
|
|
|
Type:
|
|
|
|
:set ft=prog8
|
|
|
|
to enable syntax highlighting in the open file. Alternatively, if you would
|
|
|
|
like to enable syntax highlighting for all .p8 files, add the following line
|
|
|
|
to your .vimrc:
|
|
|
|
au BufRead,BufNewFile *.p8 setfiletype prog8
|
2021-03-23 23:53:20 +00:00
|
|
|
|
|
|
|
If you would like to disable highlighting for built-in functions and
|
|
|
|
variables without deleting or renaming the file, add the following line to
|
|
|
|
your .vimrc:
|
|
|
|
let g:prog8_no_highlight_builtins = 1
|
|
|
|
(The value doesn't actually matter, only that the variable is defined.)
|