Elisp: Determine Cursor is Inside String or Comment
Check If Cursor is Inside String
(nth 3 (syntax-ppss))
- return true if cursor is inside a string.
Check If Cursor is Inside Comment
(nth 4 (syntax-ppss))
- return true if cursor is inside a comment.
2014-06-26 thanks to Elias Martenson
https://plus.google.com/+EliasMartenson/posts
for feedback.