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:
Frank LENORMAND 2016-11-22 11:07:53 +03:00
parent 0b806cd4f1
commit 0c4c7ba240

View File

@ -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
}