fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.64k stars 260 forks source link

Javascript comment delimiter face #1100

Closed gaudecker closed 4 years ago

gaudecker commented 4 years ago

I'd like to humbly request an addition of web-mode-javascript-comment-delimiter-face to web-mode's faces.

It should match both single and multi line comment delimiters.

// Comment

Comment delimiter should be //.

/**
 * Comment
 */

Comment delimiter should be /** (or /*), *, and */.

fxbois commented 4 years ago

@gaudecker not sure to understand what you want. Could you provide a screenshot that could illustrate that ?

gaudecker commented 4 years ago
Screen Shot 2020-02-24 at 9 00 45 AM

As you can see from this image, the comment delimiters are monospaced while the actual comment (aside from the markup) is proportional.

My proposal was to define separate faces for the delimiters and the content.

Hope this clears things.

fxbois commented 4 years ago

I've started to look at this and it is too complicated because I have too much ways of commenting things ( ... many template engines have their own delimiters)