1

I've a PHP script, and I would like to know if natively, I can make a part of a comment line BOLD.


For example a comment :

// it is released when you execute RELEASE_LOCK(), execute a new GET_LOCK(), or your connection terminates (either normally or abnormally).

I would like a syntax like this, to make a part of comment bold (only a part, not all line)

//it is released when you execute RELEASE_LOCK(), execute a new GET_LOCK(),or your connection terminates (either normally or abnormally).

Is it possible ? Or should I add some line in vimrc ?

  • It is possible to create syntax regions and color them differently. Can you tell me how the exact part looks like, a string or a regex? – SibiCoder Jun 10 '16 at 15:21
  • I wanted to bold the part of string in a php comment, exactly like in my exemple – NicoMinsk Jun 14 '16 at 11:09

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.