Autoformatter or indenter for XC language

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
sprajagopal
Member++
Posts: 18
Joined: Thu Jul 23, 2015 4:22 pm

Autoformatter or indenter for XC language

Post by sprajagopal »

I understand XC is similar to C but is there an autoformatter tool that normalizes spaces/tabs/hanging indents, etc for the XC language? I'm hoping someone has customized astyle, GNU Indent or some other tool for this purpose. Any help is greatly appreciated, thank you.


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Hi. A few ideas:

1) create an mbed account and cut & paste your code into the cloud compiler and select the "magic wand" icon to quickly format your code

2) download and use Sublime Editor which is a great tool on its own but you can tweak for C code formatting. Have not tested the recommended plug-in but review this post:

http://stackoverflow.com/questions/2134 ... formatting

https://packagecontrol.io/packages/Subl ... eFormatter

http://www.freshtechtips.com/2015/03/su ... kages.html
Post Reply