Skip to content

Can DocStrings be highlighted and coloured differently from other strings #30

Answered by axvr
davesann asked this question in Q&A
Discussion options

You must be logged in to vote

We've actually had this question before: #28 (comment)

TL;DR: it's really difficult to do with the regular expressions Vim provides us. In theory you could create additional tools which do that analyse the code and hook it up to Vim's "text properties" (see::help textprop.txt). Unfortunately such functionality is outside the scope of this project.

What might work as a partial-solution is to override the colour of all strings to something not as bright. E.g.

" Highlight like another syntax class (like "character" in this example).
highlight link clojureString Character
highlight link clojureStringDelimiter Character

" Highlight with custom colour (red in this example).
highlight clojureSt…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@davesann
Comment options

Answer selected by davesann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
highlighting Affects syntax highlighting
2 participants