How to create a new code formatter?

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)

3 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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)

0
Comment actions Permalink

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

0

Please sign in to leave a comment.