How format text similar to source code?

Hey there!

In runtime, I wanna import on scrollview, a text, but formating similiar to source code.
For example, Sublime Text 3 format with color a text regarding its code type.

I wanna make this too! Read a file.cs and render on scrollview, formating with color methods, variables etc, automatically!

Is it possible?

You’re wanting to do “syntax highlighting” on source code.

You’ll find lots of implementations like: https://colorcode.codeplex.com/ , http://www.anotherchris.net/csharp/syntax-highlighter-for-csharp/ , http://alexgorbatchev.com/SyntaxHighlighter/

Might be easy to adapt one of these to output something compatible with Unity’s Rich Text formatting.

Thanks, Iarku.

I’ll try deploy!