You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// In ktor, one might want to do:
call.respondText(ContentType.Text.Html) {
@Language("HTML")
"""<html> <head> <!-- ... --> </head> <body> <!-- ... --> </body></html>"""
}
// Or when doing code generation:funcreateFunction(name:String, body:FunctionBody): String {
return @Language("Javascript") """function $name() {${createFunctionBody(body)}}"""
}
The latter case might be a bit more complex due to dealing for formatted values, but a reasonable solution would be to treat them as empty for the purposes for highlighting the string. While this could pose problems for some codebases which would use this, it provides a starting point which can then be expanded upon.
No description provided.
The text was updated successfully, but these errors were encountered: