Page 1 sur 1

[vim] coloration html5

Publié : mar. 08 nov. 2016, 08:13
par AchilleFraisse
Bonjour,
Mon vim ne colore pas les élément html 5 comme header, nav, section, etc.
Comment avoir la coloration syntaxique ?

Re: [vim] coloration html5

Publié : mar. 08 nov. 2016, 12:53
par avi3000
La coloration fonctionne-t-elle pour d'autres types de fichier, bash ou sh par exemple ?

Si ta question concerne uniquement les éléments html5, comme d'hab : moteur de recherche + vim + html5, 1ère ligne des résultats

wget https://github.com/othree/html5.vim/archive/master.zip

Re: [vim] coloration html5

Publié : mar. 08 nov. 2016, 16:42
par avi3000
sinon la méthode bourrin

Code : Tout sélectionner

mkdir -p ~/.vim/after/syntax
echo 'syn keyword htmlTagName contained header nav section' > ~/.vim/after/syntax/html.vim