context-coloring icon indicating copy to clipboard operation
context-coloring copied to clipboard

Feature request: show JavaScript keywords in bold

Open fyodor123 opened this issue 8 years ago • 1 comments

#Hi,

Is it possible to still have JS syntax highlighting, not using color, but rather by showing keywords like 'function' in bold? This, perhaps, is inspired by the Algol 68 'strict representation': https://en.wikipedia.org/wiki/ALGOL_68#Example_of_different_program_representations

-- Thanks, Fyodor

fyodor123 avatar Oct 04 '17 11:10 fyodor123

This is a constructive idea, because, despite coloring buffers in an unconventional manner, we could still continue to emphasize language syntax in programs.

There are two problems:

  • First, this package does not integrate with Emacs' powerful, built-in keyword detection and fontification system. Instead, this package overrides that system with its own scope colorizer. They're incompatible. Yet Emacs' system is the ideal candidate for adding keyword emboldening.
  • Second, the name of this package restricts its scope. Context coloring is only concerned with colors, and no other text effects like boldness or italics. So specific text effects won't be added to this package's text transformation pipeline.

However, we may still be able to achieve your feature. If we can find some way to integrate context coloring with Emacs' syntax coloring, we can probably priortize context coloring for colors and "fall back" to regular syntax highlighting for other text effects (like boldness) as defined by the language's mode.

jacksonrayhamilton avatar Oct 06 '17 02:10 jacksonrayhamilton