algorithm - How to write a general source/text formatter in C# ? (Ideas) -


the question how solve problem. how source/text formatters work ? how write source/text formatter text accepts sufficient settings , works accepted.

eg. new line after { , indent next line.

how can format source codes works different languages ? there algorithm ? settings should consider ?

i need ideas @ first because source/text formatters language specific c# specific solution acceptable !

you can @ roslyn github , see how works c# , vb:

https://github.com/dotnet/roslyn

then roslyn should able write own formatter.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -