{"id":12722634,"date":"2020-04-23T21:49:14","date_gmt":"2020-04-23T21:49:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/add-new-code-language\/"},"modified":"2020-04-23T21:49:14","modified_gmt":"2020-04-23T21:49:14","slug":"add-new-code-language","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/add-new-code-language\/","title":{"rendered":"Add new Code Language"},"content":{"rendered":"<p>I would like to add a new code language to this great plugin \ud83d\ude42 <\/p>\n<p>https:\/\/codemirror.net\/mode\/ , I see Codemirror has the libraries .js<\/p>\n<p>Would I just need to add to the eixsting arrays , $pvars[&#8216;scripts&#8217;], language_mode, $pvars[&#8216;language_mode&#8217;] and $langs<\/p>\n<p>Using functions.php<\/p>\n","protected":false},"template":"","class_list":["post-12722634","topic","type-topic","status-publish","hentry","topic-tag-languages"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12722634","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\/12722634\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12722634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}