How to create a new code formatter? Follow Chez Whorton Created January 06, 2015 20:41 Is there documention on how to create a new code formatter? I want one that pretty prints the ruby stack traces (if one doesn't already exist)
Hi,
I'm not sure what exactly you want to do :(
Could you please explain the problem you want to solve with more details.
Regards, Oleg.
the Code:Reformat Code... menu choice works for ruby and a bunch of other languages.
If I want to add fomatting (and colorization) for an unsupported language, how do I do that?
(the particular thing I want to do is make something that colorizes log files, particularly if they have Ruby stack traces in them)
Hi,
most likely you need to develop your own plugin to handle .log files accordingly
See http://confluence.jetbrains.com/display/IDEADEV/PluginDevelopment for some information.
Regards, Oleg.
P.S. or you can try to find one existing in either our plugin repository or in TextMate's bundle's repositories