Skip to content

C# can be colorized by its HTML context #1

@michaelblyons

Description

@michaelblyons

C# in a <%= block will take on any scope colorization from the HTML that contains it. Thus, injecting content into HTML attributes will have the string scope from the attribute value for the entire block:

<div class="thing1 <%= someBool ? "thing2" : "thing3" %>">
    The whole C# section would have `string` colorization.
</div>

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions