echoes the group used for '''highlighting''' the character at the current cursor position, see {{help|synIDtrans()}}. It will usually be <tt>Comment</tt> if the cursor is inside of a comment, so
+
echoes the group used for '''highlighting''' the character at the current cursor position, see {{help|synIDtrans()}}. It will usually be <code>Comment</code> if the cursor is inside of a comment, so
created 2002 · complexity advanced · author Mark A. Hillebrand · version 6.0
For some scripts it might be useful to detect, whether a specific position in a buffer is inside of a comment or not. Syntax highlighting can save us the work for parsing the comments ourselves.
The command
echoes the group used for highlighting the character at the current cursor position, see :help synIDtrans(). It will usually be Comment if the cursor is inside of a comment, so