Support xml based code in html.kak
This commit extends the range of mimetypes detected in `html.kak` to the following: * text/html * text/x-html * text/xml * application/xml * application/…+xml (e.g. xhtml, rss) Static .xml file will also be highlighted as HTML.
This commit is contained in:
parent
0b806cd4f1
commit
0c4c7ba240
|
@ -4,11 +4,11 @@
|
|||
# Detection
|
||||
# ‾‾‾‾‾‾‾‾‾
|
||||
|
||||
hook global BufSetOption mimetype=text/x-html %{
|
||||
hook global BufSetOption mimetype=(text/((x-)?html|xml)|application/((\w+\+)?xml)) %{
|
||||
set buffer filetype html
|
||||
}
|
||||
|
||||
hook global BufCreate .*[.](html) %{
|
||||
hook global BufCreate .*\.(html|xml) %{
|
||||
set buffer filetype html
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user