Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

Allow for language injections inside strings.

Open Eric-P7 opened this issue 4 years ago • 1 comments

var a = `<div>This should be <b>highlighted</b> as html</b>`;

If a JavaScript string begins with /\s*</ then its contents should be syntax highlighted as HTML. This could be done for all JavaScript strings, or perhaps just JavaScript template strings. The Jetbrains IDE's do this and it's quite useful: https://www.jetbrains.com/help/webstorm/using-language-injections.html

This could perhaps be expanded to also syntax highlight SQL queries inside PHP strings, or HTML inside PHP strings.

Eric-P7 avatar Aug 11 '21 16:08 Eric-P7

Hi @EricPoggel; this should also be addressed at Lexilla Project (https://github.com/ScintillaOrg/lexilla).

RaiKoHoff avatar Aug 17 '21 08:08 RaiKoHoff