{"id":49,"date":"2024-01-28T20:30:44","date_gmt":"2024-01-28T20:30:44","guid":{"rendered":"http:\/\/development.abcplayers.org\/index.php\/css\/index\/"},"modified":"2024-01-28T20:30:44","modified_gmt":"2024-01-28T20:30:44","slug":"index","status":"publish","type":"page","link":"https:\/\/development.abcplayers.org\/index.php\/css\/index\/","title":{"rendered":"CodeMirror: CSS mode"},"content":{"rendered":"<p><body><\/p>\n<div id=\"nav\">\n  <a href=\"http:\/\/codemirror.net\"><\/p>\n<h1>CodeMirror<\/h1>\n<p><img decoding=\"async\" id=\"logo\" src=\"..\/..\/doc\/logo.png\"\/><\/a><\/p>\n<ul>\n<li><a href=\"..\/..\/index.html\">Home<\/a>\n    <\/li>\n<li><a href=\"..\/..\/doc\/manual.html\">Manual<\/a>\n    <\/li>\n<li><a href=\"https:\/\/github.com\/codemirror\/codemirror\">Code<\/a>\n  <\/li>\n<\/ul>\n<ul>\n<li><a href=\"..\/index.html\">Language modes<\/a>\n    <\/li>\n<li><a class=\"active\" href=\"#\">CSS<\/a>\n  <\/li>\n<\/ul>\n<\/div>\n<article>\n<h2>CSS mode<\/h2>\n<form><textarea id=\"code\" name=\"code\"><br \/>\n\/* Some example CSS *\/<\/p>\n<p>@import url(&#8220;something.css&#8221;);<\/p>\n<p>body {<br \/>\n  margin: 0;<br \/>\n  padding: 3em 6em;<br \/>\n  font-family: tahoma, arial, sans-serif;<br \/>\n  color: #000;<br \/>\n}<\/p>\n<p>#navigation a {<br \/>\n  font-weight: bold;<br \/>\n  text-decoration: none !important;<br \/>\n}<\/p>\n<p>h1 {<br \/>\n  font-size: 2.5em;<br \/>\n}<\/p>\n<p>h2 {<br \/>\n  font-size: 1.7em;<br \/>\n}<\/p>\n<p>h1:before, h2:before {<br \/>\n  content: &#8220;::&#8221;;<br \/>\n}<\/p>\n<p>code {<br \/>\n  font-family: courier, monospace;<br \/>\n  font-size: 80%;<br \/>\n  color: #418A8A;<br \/>\n}<br \/>\n<\/textarea><\/form>\n<p>    <script><![CDATA[\n      var editor = CodeMirror.fromTextArea(document.getElementById(\"code\"), {\n        extraKeys: {\"Ctrl-Space\": \"autocomplete\"}\n      });\n    ]]><\/script><\/p>\n<p><strong>MIME types defined:<\/strong> <code>text\/css<\/code>, <code>text\/x-scss<\/code> (<a href=\"scss.html\">demo<\/a>), <code>text\/x-less<\/code> (<a href=\"less.html\">demo<\/a>).<\/p>\n<p><strong>Parsing\/Highlighting Tests:<\/strong> <a href=\"..\/..\/test\/index.html#css_*\">normal<\/a>,  <a href=\"..\/..\/test\/index.html#verbose,css_*\">verbose<\/a>.<\/p>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CodeMirror Home Manual Code Language modes CSS CSS mode \/* Some example CSS *\/ @import url(&#8220;something.css&#8221;); body { margin: 0; padding: 3em 6em; font-family: tahoma, arial, sans-serif; color: #000; } #navigation a { font-weight: bold; text-decoration: none !important; } h1 { font-size: 2.5em; } h2 { font-size: 1.7em; } h1:before, h2:before { content: &#8220;::&#8221;; } [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":47,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-49","page","type-page","status-publish","hentry","post"],"_links":{"self":[{"href":"https:\/\/development.abcplayers.org\/index.php\/wp-json\/wp\/v2\/pages\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/development.abcplayers.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/development.abcplayers.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/development.abcplayers.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/development.abcplayers.org\/index.php\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":0,"href":"https:\/\/development.abcplayers.org\/index.php\/wp-json\/wp\/v2\/pages\/49\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/development.abcplayers.org\/index.php\/wp-json\/wp\/v2\/pages\/47"}],"wp:attachment":[{"href":"https:\/\/development.abcplayers.org\/index.php\/wp-json\/wp\/v2\/media?parent=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}