Notepad3
Notepad3 copied to clipboard
Allow for language injections inside strings.
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.
Hi @EricPoggel; this should also be addressed at Lexilla Project (https://github.com/ScintillaOrg/lexilla).