IRoslynHighlighterService

interface

Namespace: MyLittleContentEngine.Services.Content.Roslyn

Declaration

public interface IRoslynHighlighterService

Methods

GetCodeOutputAsync

method
public abstract Task<string> GetCodeOutputAsync(string xmlDocId, string value)
Returns: Task<string>
xmlDocId string
value string

GetFileContentAsync

method
public 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 stringThe path relative to the solution root directory

Highlight

method
public abstract string Highlight(string codeContent, Language language)
Returns: string
codeContent string
language Language

HighlightExampleAsync

method
public abstract Task<string> HighlightExampleAsync(string xmlDocIds, bool bodyOnly)
Returns: Task<string>
xmlDocIds string
bodyOnly bool