{"id":503,"date":"2006-03-22T20:55:45","date_gmt":"2006-03-22T19:55:45","guid":{"rendered":"http:\/\/www.lubica.net\/bigwhale\/blog\/?p=503"},"modified":"2006-03-23T11:59:15","modified_gmt":"2006-03-23T10:59:15","slug":"syntax-higlighter","status":"publish","type":"post","link":"https:\/\/lubica.net\/bigwhale\/blog\/syntax-higlighter\/","title":{"rendered":"Syntax Higlighter"},"content":{"rendered":"<p>Namestil sem si <a target=\"_blank\" title=\"Syntax Hiliter\" href=\"http:\/\/blog.igeek.info\/wp-plugins\/igsyntax-hiliter\/\">plugin<\/a> za barvanje sintakse. Pa poglejmo&#8230;<\/p>\n<p>[c]<br \/>\nint main ()<br \/>\n{<br \/>\n  int a, b;<br \/>\n  srand(time());<br \/>\n  a = 1 + (int) (10.0 * (rand() \/ (RAND_MAX + 1.0)));<br \/>\n  switch (a)<br \/>\n  {<br \/>\n    case 1: printf(&#8220;You&#8217;re number One!\\n&#8221;); break;<br \/>\n    default: printf(&#8220;You&#8217;re more than one!\\n&#8221;); if (a > 3) { printf(&#8220;Testing really large values of A. Really large, sort of. We&#8217;re just testing couple of long lines&#8230; In the code box&#8230; That&#8217;s it. Yeah!\\n&#8221;); } break;<br \/>\n  }<br \/>\n  printf(&#8220;Counting: &#8220;);<br \/>\n  for (b = 0; b < a; b++)\n  {\n    printf(\" %d\");\n  }\n\n  printf(\"!\\n Bailing out!\\n\");\n  return 0;\n}\n[\/c]\n\nUpdate: Celo zadevo je bilo potrebno malo 'potweakat', sedaj pa dela kar lepo.\nSyntax hiliter dela tudi v komentarjih, vse kar je potrebno, je to, da kodo objamete z oznako [ c ] [ \/c ] za jezik C. Potem so tukaj \u0161e cpp, js, vbs, perl, phyton, php, xml, sql...\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Namestil sem si plugin za barvanje sintakse. Pa poglejmo&#8230; [c] int main () { int a, b; srand(time()); a = 1 + (int) (10.0 * (rand() \/ (RAND_MAX + 1.0))); switch (a) { case 1: printf(&#8220;You&#8217;re number One!\\n&#8221;); break; default: printf(&#8220;You&#8217;re more than one!\\n&#8221;); if (a > 3) { printf(&#8220;Testing really large values of A. Really large, sort of. We&#8217;re just testing couple of long lines&#8230; In the code box&#8230; That&#8217;s it. Yeah!\\n&#8221;); } break; } printf(&#8220;Counting: &#8220;); for (b&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/lubica.net\/bigwhale\/blog\/syntax-higlighter\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,7],"tags":[],"class_list":["post-503","post","type-post","status-publish","format-standard","hentry","category-open-source","category-tech-stuff"],"_links":{"self":[{"href":"https:\/\/lubica.net\/bigwhale\/blog\/wp-json\/wp\/v2\/posts\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lubica.net\/bigwhale\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lubica.net\/bigwhale\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lubica.net\/bigwhale\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lubica.net\/bigwhale\/blog\/wp-json\/wp\/v2\/comments?post=503"}],"version-history":[{"count":0,"href":"https:\/\/lubica.net\/bigwhale\/blog\/wp-json\/wp\/v2\/posts\/503\/revisions"}],"wp:attachment":[{"href":"https:\/\/lubica.net\/bigwhale\/blog\/wp-json\/wp\/v2\/media?parent=503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lubica.net\/bigwhale\/blog\/wp-json\/wp\/v2\/categories?post=503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lubica.net\/bigwhale\/blog\/wp-json\/wp\/v2\/tags?post=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}