Home Download Buy Blog Forum Support

Code style package?

Code style package?

Postby Eduan on Mon Oct 15, 2012 9:43 pm

Hi, just make this topic to ask a question. Is there already a package made for you to like tell Sublime Text 2 your code style, and that you just do like Command+b (for example) and it applies the code style I configured. Like what most IDEs have.

Is there any package for this already? Or should I learn Python and do it myself?
Check out my blog and website: EduanTech.com (currently undergoing some facial and organs makeover...)
Also check out my profiles: GitHub - Greduan | BitBucket - Greduan
Eduan
 
Posts: 140
Joined: Sun Oct 14, 2012 4:05 pm

Re: Code style package?

Postby quarnster on Tue Oct 16, 2012 5:53 am

What language? For C/C++/C#/Java there's https://github.com/timonwong/SublimeAStyleFormatter
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: Code style package?

Postby Eduan on Tue Oct 16, 2012 1:26 pm

I meant for more web development oriented, or if possible, all the languages. lol Thanks for the help though. :)

Web development includes HTML (and all it's variations, but mostly HTML5), JavaScript (jQuery, AJAX), PHP, MySQL etc.

- Eduan
Check out my blog and website: EduanTech.com (currently undergoing some facial and organs makeover...)
Also check out my profiles: GitHub - Greduan | BitBucket - Greduan
Eduan
 
Posts: 140
Joined: Sun Oct 14, 2012 4:05 pm

Re: Code style package?

Postby skuroda on Wed Oct 17, 2012 9:24 pm

I haven't seen an all inclusive style plugin but..

For html, there is https://github.com/SublimeText/Tag. Don't know how well it works, so just pointing it out.

For JavaScript, there is https://github.com/jdc0589/JsFormat. I've never used it for JavaScript styling, but "under the hood" is the same code powering http://jsbeautifier.org/. I've used it to format JSON (on the site) and it works fine. I haven't seen anything for the other languages you are looking for (that being said I recently got started on Sublime Text 2).
skuroda
 
Posts: 687
Joined: Fri Oct 05, 2012 8:11 am

Re: Code style package?

Postby Eduan on Wed Oct 17, 2012 9:38 pm

That's awesome, thanks skuroda! If you find for the rest, please let me know. :)
Check out my blog and website: EduanTech.com (currently undergoing some facial and organs makeover...)
Also check out my profiles: GitHub - Greduan | BitBucket - Greduan
Eduan
 
Posts: 140
Joined: Sun Oct 14, 2012 4:05 pm


Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 11 guests