Skip to content

Support for razor html and code html as well as line numbers #2

@chanan

Description

@chanan

API:

<PrettyCode CodeFile="uri" />

This will do exactly what CodeFile did previously

<PrettyCode CodeFile="uri" CodeSectionFile="uri2" />

This will append the contents of CodeSectionFile below CodeFile. If CodeSectionFile is not wrapped with: @code { } then it will be wrapped automatically.

Line numbers are also supported:

<PrettyCode 
   CodeFile="uri" 
   CodeFileLineNumbers="1-50"
   CodeSectionFile="uri2"
   CodeSectionFileLineNumbers="52,55-60"
/>

If CodeSectionFile is not defined but CodeSectionFileLinesNumbers is defined, then it will be assumed that the code section is in the same file as CodeFile

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions