So lets give it a try for the languages I use most.
SQL
SELECT ename, empno
FROM emp
WHERE empno = 7654;
PL/SQL (same highlighting as SQL)
BEGIN
FOR r in (SELECT ename, empno
FROM emp)
LOOP
htp.p(r.ename);
END LOOP;
END;
JavaScript
$(document).ready(function() {
$(".btn-download").click(function(){
callMyFunction();
});
});
XML
Only problem is that it does not work for those who reads the blogs they are interested in via RSS. Your post made little sense before I clicked on "Show original item". Just something to keep in mind as most readers uses an rss reader these days.
ReplyDeleteThanks for highlighting that.
ReplyDeleteBefore I took screenshots, which worked nicely too, but it's much harder for people to copy the code in that way.
I'll try to mention it in the beginning of my post where I use it.
Thanks,
Dimitri
Hi! Sorry for my English, sometimes it's horrible. :)
ReplyDeleteThere is one little remark. Are you really going to use SyntaxHighlighter Brushes for PHP, Ruby, C++ and others? Looking on Firebug's Net tab I see all this stuff that will never be used. What about to only load those brushes, that you mention: SQL, JavaScript, XML?
And one more: Dimitri, thanks a lot for your blog, it`s amazing, interesting, helpful!
With the best wishes,
Alex.
Thanks Alex.
ReplyDeleteI updated it so it only loads the necessary files.
Hi Dimitri,
ReplyDeleteI use the Syntax Highlighter for my blog and have the same issue for RSS feeds. I don't know if there's a work around for it...
Martin
This comment has been removed by the author.
ReplyDeletethanks for the link glad my post helped
ReplyDeleteglad my post could help! yea i have a problem with the rss too i wish it could fail gracefully...
ReplyDelete