{"id":7148028,"date":"2016-03-08T00:42:04","date_gmt":"2016-03-08T00:42:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-for-posting-code-and-syntax\/"},"modified":"2016-08-31T14:22:50","modified_gmt":"2016-08-31T14:22:50","slug":"plugin-for-posting-code-and-syntax","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-for-posting-code-and-syntax\/","title":{"rendered":"Plugin for posting Code and Syntax"},"content":{"rendered":"<p>Hey all,<\/p>\n<p>I&#8217;ve been having a hard time finding a simple plugin which will do what I need. I&#8217;m writing articles that involve showing programming code and need to highlight code blocks.<\/p>\n<p>I&#8217;d like to be able to customize it, but essentially for code blocks, I need a gray background and fixed-width font. But I still need to be able to bold\/italics\/etc to highlight individual words within the code block.<\/p>\n<p>Potentially something that lets me add it simply with a shortcode in the visual editor.<\/p>\n<p>I would also be open to creating my own CSS, but I don&#8217;t know how to tie a shortcode in the visual editor to a particular CSS div or span (or some such). If someone has a link with a guide, I would greatly appreciate it!<\/p>\n","protected":false},"template":"","class_list":["post-7148028","topic","type-topic","status-publish","hentry","topic-tag-css","topic-tag-shortcode"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7148028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7148028\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7148028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}