Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

I find that the highlighting for doc-strings dominates what I can see and I want to grey these out.

Other strings, part of the code, I would leave unaltered.

Is this possible?

How would it be done?

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

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 clojureString guifg=#ff0000 ctermfg=1
highlight clojureStringDelimiter guifg=#ff0000 ctermfg=1
You must be logged in to vote
1 reply
Comment options

I thought that might be the case

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

AltStyle によって変換されたページ (->オリジナル) /