codedoc icon indicating copy to clipboard operation
codedoc copied to clipboard

enhance the underline code block feature to support more languages

Open fdaguin opened this issue 4 years ago • 2 comments

Is your feature request related to a problem?

The Error/Warning Underline (#49) feature is limited to "languages supporting /* ... */ or (* ... *) comment syntax".

Describe the solution you'd like

I'd like this feature to support languages outside of this limitation, specifically languages with no inline-comment support.

Could this maybe be achieved like the Code Highlights feature where the symbol "is pre-processed by codedoc before syntax highlighting and removed from the code"?

fdaguin avatar Aug 30 '21 19:08 fdaguin

Can you give an example of such a language?

TysonMN avatar Aug 30 '21 23:08 TysonMN

Sure, here is a quick list of languages I have in mind:

  • languages with no inline-comment:
    • Python
    • Ruby
    • Perl
    • PowerShell
    • YAML
  • language with no comment support at all:
    • JSON

fdaguin avatar Aug 31 '21 12:08 fdaguin