Tag Archives: python

Easily document your JavaScript with Pycco

I’ve seen several JavaScript libraries starting to use Docco to generate documentation from JavaScript files. If you are on Mac or Linux then that is the way to go, if you happen to be like me on Windows, then you are likely to spend some hours like I did trying to get it running unsuccessfully.

After some further reading and, since at the background Docco uses a Python module, I decided to install Pycco, a Python port of Docco. To my surprise in less than 10 mins I was already creating docs from my JavaScript sources.

Continue reading

Notepad++ JS Beautifier

Working on a team with several editors and configurations usually tends to create a mess on the code formatting. I was trying for a couple of days the Sublime Text editor and I kinda liked it, one plugin I really liked it is the JSBeautifier that, as its name says, formats the current file (or selection) as the jsbeautifier.org site.

Sublime Text is cool, but I am a still short of money and do not concider to by it in the near future) also I am still a big fan of Notepad++ but I didn’t find a good javascript formatter, suddenly I already got my Sublime Text 2 licence and it is wort every peny 8) if you can afford it, it is a must have, if not, give it a try and you won’t regret; anyway, when I was doing this I realized that:

So, I headed to JSBeautifier github to download the python module, downloaded the Ptyhon Script Plugin for Notepad++, spent around an hour reading and testing and I ended “porting” the script into my Notepad++ :-D

Continue reading