How can I highlight in Emacs the percentage sign "%" for accessing members of a type?
Add the following to your .emacs
:
(font-lock-add-keywords 'f90-mode
'(("%" . font-lock-keyword-face)))
This highlights %
in the same colour as keywords like if
, then
, call
, etc. There are a load of predefined faces listed in the manual, or you can specify a face manually.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With