I want to show some source code using a WebBrowser control on winform. And I want to decorate the source code with HTML tags such as color, font, and size. But it was difficult for me to display the indent .
To be precise, my source code is stored in String [], and each line contains an existing indent (space or tab). But it looks like this indentation is only ignored by the WebBrowser control.
Can anyone tell me how?
html css browser winforms
smwikipedia
source share