IRoslynHighlighterService
interfaceDeclaration
public interface IRoslynHighlighterService
Methods
GetCodeOutputAsync
methodpublic abstract Task<string> GetCodeOutputAsync(string xmlDocId, string value)
Returns:
Task<string>
xmlDocId string | |
value string |
GetFileContentAsync
methodpublic abstract Task<string> GetFileContentAsync(string relativePath)
Retrieves the full content of a file using a path relative to the solution root.
Returns:
Task<string>
relativePath string | The path relative to the solution root directory |
Highlight
methodpublic abstract string Highlight(string codeContent, Language language)
Returns:
string
codeContent string | |
language Language |
HighlightExampleAsync
methodpublic abstract Task<string> HighlightExampleAsync(string xmlDocIds, bool bodyOnly)
Returns:
Task<string>
xmlDocIds string | |
bodyOnly bool |