Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: show JavaScript keywords in bold #8

Open
fyodor123 opened this issue Oct 4, 2017 · 1 comment
Open

Feature request: show JavaScript keywords in bold #8

fyodor123 opened this issue Oct 4, 2017 · 1 comment

Comments

@fyodor123
Copy link

fyodor123 commented Oct 4, 2017

#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

@jacksonrayhamilton
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants