How to detect if the point is within a comment area?
|
|
|
Check the fourth* value in the list returned by
It's * Zero-based. |
|||||||||||||||||
|
|
use the font-face, this is the trick I learned from flyspell. I tried
Here is code I copied from flyspell:
Please note the code could be extended to support new major modes by fuzz matching font face. I've used this trick for about three years without failure. Besides, considering flyspell is widely used for so long, I could claim this method is reliable. See Which keyboard shortcut to use for navigating out of a string for similar question. |
||||
|
|