In the solution article text editor, you would get the option to customize your articles by editing the HTML source with code formatting and colouring, using the Code View feature. This is a built-in compiler, within the solution article which shows the output of the HTML code directly(on disabling the code view).
Other formatting options include:
Line number on the source code
Search and Replace tags within the code view
Shortcuts: Search - Ctrl+F, Replace - Ctrl+Alt+F