All Questions
12 questions
0
votes
1
answer
34
views
Does Emacs support stripping comments in CLI mode?
While researching how to remove C and C++ style comments from a file, I stumbled on the following two comments by Alan Mackenzie from almost 20 years ago:
I can assure you, as half of the Emacs CC ...
0
votes
0
answers
38
views
Keeping specific comments with bold weight
I am using a bold typeface, but for comments I am using normal weight. But I would like that some specific comments to remain displayed with bold weight. The specific comments are those that start ...
1
vote
1
answer
125
views
After setting syntax-propertize-function, comment is not being fontified with comment face
I'm trying to build a major mode for xwiki, where I'm defining
{{{
verbatim
}}}
as a comment.
So far, I've done
(eval-when-compile
(defconst xwiki-syntax-propertize-rules
(syntax-...
0
votes
0
answers
83
views
in Fundamental mode, give certain marked text a different face
I am trying to add a new comment character in fundamental mode, but I can't get it to work.
Let me rephrase that, because I think it's an xy-problem.
What I really would like to have is the ...
0
votes
1
answer
190
views
How to highlight a single word in comments, which matches a function call?
While there are packages that handle this, I would like to highlight a single word in source code comments, using for example the warning face, when a function call returns t, using the word as input.
...
1
vote
0
answers
82
views
EMACS doesn't grey out comments
When I comment out code with combination of /* and */ in JavaScript nothing happens with text and it stays the same color. (You can see it in second part of code, one that is not grayed out but is ...
1
vote
0
answers
70
views
Enable `cc-mode` documentation highlightning per minor mode
I am writing a minor mode for enabling support for JML within Java files.
I realized the syntax highlighting with cc-mode's support for documentation comments.
It works if I set c-doc-comment-style ...
1
vote
0
answers
78
views
Font-locking for text inside org-mode COMMENT blocks
While other sorts of #+BEGIN ... #+END blocks seem to get font-locking applied to them (potentially changing foreground and background colours etc.), #+BEGIN_COMMENT ... #+END_COMMENT blocks do not. ...
1
vote
1
answer
380
views
setting comment face in major mode on multi-line word-delimited comments
I am working on a major mode for an input file format I am interested in and want to set multi-line comments with the delimiters skip and noskip like
skip larb noskip
or
skip
GRID
TYPE ...
6
votes
0
answers
115
views
Code blocks in font-lock comments
I'm developing a major mode for a language that has doc comments. They look like this:
(** Foos three bars.
Better call this as [foo 1 b c].
Though of course [foo a b 1] works as well. **)
...
6
votes
2
answers
742
views
Three-characters comment syntax
Emacs supports syntax flags for 1- and 2-characters comment delimiters. Can it be made to recognize and properly highlight 3-characters delimiters?
For example:
In Emacs Lisp:
;;; Headings
In C#...
7
votes
1
answer
186
views
Modify org-mode's definition of comment lines?
Q: how do I change org-mode's definition of a commented line?
According to the manual, org-mode comments work as follows:
Lines starting with zero or more whitespace characters followed by one '#' ...