{"id":32,"date":"2011-12-14T11:19:57","date_gmt":"2011-12-14T17:19:57","guid":{"rendered":"https:\/\/www.asberry.org\/blog_tech\/?p=32"},"modified":"2011-12-15T07:34:49","modified_gmt":"2011-12-15T13:34:49","slug":"google-syntax-highlighter","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=32","title":{"rendered":"Google Syntax Highlighter"},"content":{"rendered":"<p>Because I&#8217;m going to be using this site to store bits of information that happen to be code, I&#8217;ve decided to utilize Google syntax highlighter for this functionality.\u00a0 The main problem is it&#8217;s pretty complicated to use.\u00a0 So this post has the information I&#8217;ll need to use it.<\/p>\n<p>The usage wiki for GSH can be found <a title=\"Google sytax highlighter usage\" href=\"http:\/\/code.google.com\/p\/syntaxhighlighter\/wiki\/Usage\" target=\"_blank\">here <\/a>and here is an example for the HTML:<\/p>\n<p><a href=\"https:\/\/www.asberry.org\/blog_tech\/wp-content\/uploads\/2011\/12\/GSH_CodeSample.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-34\" title=\"GSH_CodeSample\" src=\"https:\/\/www.asberry.org\/blog_tech\/wp-content\/uploads\/2011\/12\/GSH_CodeSample.png\" alt=\"\" width=\"257\" height=\"56\" \/><\/a><\/p>\n<p>Here&#8217;s a list of supported languages and their aliases:<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Language<\/strong><\/td>\n<td><strong>Aliases<\/strong><\/td>\n<\/tr>\n<tr>\n<td>C++<\/td>\n<td><tt>cpp<\/tt>, <tt>c<\/tt>, <tt>c++<\/tt><\/td>\n<\/tr>\n<tr>\n<td>C#<\/td>\n<td><tt>c#<\/tt>, <tt>c-sharp<\/tt>, <tt>csharp<\/tt><\/td>\n<\/tr>\n<tr>\n<td>CSS<\/td>\n<td><tt>css<\/tt><\/td>\n<\/tr>\n<tr>\n<td>Delphi<\/td>\n<td><tt>delphi<\/tt>, <tt>pascal<\/tt><\/td>\n<\/tr>\n<tr>\n<td>Java<\/td>\n<td><tt>java<\/tt><\/td>\n<\/tr>\n<tr>\n<td>Java Script<\/td>\n<td><tt>js<\/tt>, <tt>jscript<\/tt>, <tt>javascript<\/tt><\/td>\n<\/tr>\n<tr>\n<td>PHP<\/td>\n<td><tt>php<\/tt><\/td>\n<\/tr>\n<tr>\n<td>Python<\/td>\n<td><tt>py<\/tt>, <tt>python<\/tt><\/td>\n<\/tr>\n<tr>\n<td>Ruby<\/td>\n<td><tt>rb<\/tt>, <tt>ruby<\/tt>, <tt>rails<\/tt>, <tt>ror<\/tt><\/td>\n<\/tr>\n<tr>\n<td>Sql<\/td>\n<td><tt>sql<\/tt><\/td>\n<\/tr>\n<tr>\n<td>VB<\/td>\n<td><tt>vb<\/tt>, <tt>vb.net<\/tt><\/td>\n<\/tr>\n<tr>\n<td>XML\/HTML<\/td>\n<td><tt>xml<\/tt>, <tt>html<\/tt>, <tt>xhtml<\/tt>, <tt>xslt<\/tt><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Because I&#8217;m going to be using this site to store bits of information that happen to be code, I&#8217;ve decided to utilize Google syntax highlighter for this functionality.\u00a0 The main problem is it&#8217;s pretty complicated to use.\u00a0 So this post has the information I&#8217;ll need to use it. The usage wiki for GSH can be [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-blogsblogging","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-w","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":3,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":33,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions\/33"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}