SyntaxManager
The SyntaxManager lets you add syntax highlighting to lua code to be showned in a MyGui textbox/editbox
Functions
highlightCode
sm.scrapcomputers.syntaxManager.highlightCode( source, exceptionLines )
Adds syntax highlighting to the source and returns it. You can also mark exceptionLines, The first one is where the actual error happened and the rest are code that leads to that error. If you dont want that, set it to a empty table
Arguments:
- source [ string ] The source to highlight
- exceptionLines [ integer[] ] Lines where the exceptions happened
Returns:
- [ string ] The highlighted code