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
API:
This will do exactly what
CodeFiledid previouslyThis 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:
If
CodeSectionFileis not defined butCodeSectionFileLinesNumbersis defined, then it will be assumed that the code section is in the same file asCodeFile