News for hackers. Stuff that matters.
Re:Ask HN: review my tiny app - code to html converter by profquail on Monday September 14, 2009 @09:55AM (#821632)
Cool little app. One little improvement I thought of though, is to move the inline styles into the header, even if you're just using class names like "code1", "code2", etc.

It would just make it a bit easier to read the source code or change the code colors if you ever needed to. It should also give you a small decrease in the actual code size, which could matter if you were posting a lot of code on a heavily-visited site.

Re:Ask HN: review my tiny app - code to html converter by alexkay on Monday September 14, 2009 @10:01AM (#821645)
The reason I wrote this tool is because some blog hosting providers don't allow to inject custom CSS or javascript into the <header>

There are already quite a few solutions for those who can modify the header, the most famous is http://alexgorbatchev.com/wiki/SyntaxHighlighter

Re:Ask HN: review my tiny app - code to html converter by profquail on Monday September 14, 2009 @06:48PM (#822790)
I think you can register CSS classes via JavaScript...so if they couldn't put a style block in the header, they could put a script block in the body.