vim-css-color icon indicating copy to clipboard operation
vim-css-color copied to clipboard

Add support for LaTeX?

Open AStcherbinine opened this issue 3 years ago • 1 comments

Hello, Looks like the module does not support highlighting Latex files currently, would it be possible to add it? Especially for the \textcolor command from the xcolor package. E.g.,

\textcolor{red}{red text}
\textcolor[HTML]{FF0000}{other red text}

Thanks!

AStcherbinine avatar Oct 12 '22 14:10 AStcherbinine

Almost certainly possible. I’ll take a look.

This syntax does somewhat cut against the plugin’s grain in one obvious way: it doesn’t include the # in front of the RGB value (as most syntaxes do). But that alone just means it’ll take more work to support than usual.

ap avatar Oct 12 '22 18:10 ap