{"id":1431,"date":"2018-07-22T12:37:45","date_gmt":"2018-07-22T12:37:45","guid":{"rendered":"http:\/\/learncode.tinjurewp.com\/?p=1431"},"modified":"2018-08-13T01:12:15","modified_gmt":"2018-08-13T01:12:15","slug":"customizing-prism-syntax-highlighter","status":"publish","type":"post","link":"https:\/\/learncode.tinjurewp.com\/customizing-prism-syntax-highlighter\/","title":{"rendered":"Customizing Prism Syntax Highlighter"},"content":{"rendered":"<p>I have been trying to customize <a href=\"https:\/\/prismjs.com\/\" target=\"_blank\" rel=\"noopener\">Prism Syntax highlighter<\/a> for a while and but had somehow stocked because I could&#8217;t overwrite plugin&#8217;s CSS rules. I like <a href=\"https:\/\/github.com\/taniarascia\/new-moon\" target=\"_blank\" rel=\"noopener\">Tania Radcia&#8217;s New Moon color<\/a> scheme and wanted to adopt the rules in my CSS rules but I had failed in my past few attempts.<\/p>\n<p>To-day, while got little distracted from my JS learning session, I look at the rules then I realized that I had some typos and I fixed the typos but still it did&#8217;t work. What I needed to do was to use <code>!important<\/code> override in all CSS rules then got fixed. Unless essential I don&#8217;t like to use <code>!important<\/code> override but in this case I had to use my dirty fix to adopt the new rules. Now my codes look little better finally!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been trying to customize Prism Syntax highlighter for a while and but had somehow stocked because I could&#8217;t overwrite plugin&#8217;s CSS rules. I like Tania Radcia&#8217;s New Moon color scheme and wanted to adopt the rules in my CSS rules but I had failed in my past few attempts. To-day, while got little [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1,4],"tags":[],"class_list":["post-1431","post","type-post","status-publish","format-standard","hentry","category-general","category-javascript"],"_links":{"self":[{"href":"https:\/\/learncode.tinjurewp.com\/wp-json\/wp\/v2\/posts\/1431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learncode.tinjurewp.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learncode.tinjurewp.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learncode.tinjurewp.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/learncode.tinjurewp.com\/wp-json\/wp\/v2\/comments?post=1431"}],"version-history":[{"count":0,"href":"https:\/\/learncode.tinjurewp.com\/wp-json\/wp\/v2\/posts\/1431\/revisions"}],"wp:attachment":[{"href":"https:\/\/learncode.tinjurewp.com\/wp-json\/wp\/v2\/media?parent=1431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learncode.tinjurewp.com\/wp-json\/wp\/v2\/categories?post=1431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learncode.tinjurewp.com\/wp-json\/wp\/v2\/tags?post=1431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}