Google Application : Code Formatting Service Example
I was lucky enough to get an invite to the new Google Application service beta, and have been playing around with it.
I just put together a simple code formatting service application. This provides an html and web service for formatting / beautifying code.
You can find complete details on the about page for the service.
I will post the source in the next day or two.
Post any comments, questions, bugs or suggestions in the comments.
Update : I just uploaded the source to the app, which you can grab from the about page.






One bug would be that the links do not work. And possibly that they are both the same non-working link.
Tim
8 Apr 08 at 3:43 pm
What link isnt working for you?
mike chambers
mesh@adobe.com
mikechambers
8 Apr 08 at 10:13 pm
Mike, thank you!
PS: can you add cf syntax?
injun #576871
8 Apr 08 at 10:18 pm
I cant add it, but someone can:
http://pygments.org/docs/lexerdevelopment/
http://pygments.org/docs/formatterdevelopment/
mike chambers
mesh@adobe.com
mikechambers
8 Apr 08 at 10:30 pm
This is cool!
Is there any chance to format MXML to or even better a combination of the 2?
savvasmalamas
9 Apr 08 at 6:04 am
They’re working now. Sorry about that.
Tim
9 Apr 08 at 7:19 am
>Is there any chance to format MXML to or even better a combination of the 2?
Yes, but someone will have to write the parsers.
http://pygments.org/docs/lexerdevelopment/
http://pygments.org/docs/formatterdevelopment/
Right now, you could probably use the XML formatter for MXML.
mike chambers
mesh@adobe.com
mikechambers
9 Apr 08 at 7:46 am
This points out something interesting about App Engine that hadn’t dawned on me until now.
I had focused on the zero-cost basic service as being a nice way to gracefully bootstrap some business idea.
But what you’ve pointed out here is that now it’s easier to make “freeware” Web services the same way one can freely distribute open source software. You don’t have to worry much about availability, getting Slashdotted, or any of the other headaches that might cause you to skip hosting some service you might otherwise put up that you don’t really expect to make money on.
Unless you were planning on starting to charge for your source code formatting service… ;-)
Mark Murphy
9 Apr 08 at 1:55 pm
Hello Mike,
this is a little bit offtopic. I don’t really know how to contact Adobe in this matter, so I want to give it a try here.
I have found out that Scientology is heavily using Adobe Flash to advertise their cult. One example is http://www.scientology.org Scientology is not a religion, but a big money-machine that manipulates people. Please investigate current protests against Scientology around the world. A good start is searching YouTube for the term “anonymous”.
I want to ask Adobe to break all business relations to Scientology. It does not go along with Adobe’s ethics and values, which I highly respect. PLEASE pass on. Thanks.
Anonymous.
Anonymous
14 Apr 08 at 1:25 pm
I saw Lee Brimelows calendar on screen during his presentation on the OnAir tour in Amsterdam.
If I saw it correctly I have to say “Happy Birthday” today :)
Sander
15 Apr 08 at 3:35 pm
Hi Mike
tried the code formatting service with some AS3 that had a bunch of tabs, some missing, some not, generally messy code.
Post run through, its still messy, just not so much.
Any update on open sourcing the codeso I could maybe take a stab at fixing this?
thanks!
Adrian
Adrian Parker
1 May 08 at 1:39 am
>Any update on open sourcing the codeso I could maybe take a stab at fixing this?
I just uploaded it and updated the post with the info.
mike chambers
mesh@adobe.com
mikechambers
1 May 08 at 9:18 am