4 ms·
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", "
by profquail 17y ago
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.
- alexkay 17y agoThe 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 http://alexgorbatchev.com/wiki/SyntaxHighlighter
- profquail 17y agoI 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.