Permalink
Browse files

Removed useless files

  • Loading branch information...
1 parent ec8fb79 commit 9a21891727578fc4aef6d48722118b2da51c75e4 @LeaVerou LeaVerou committed Jul 31, 2012
Showing with 0 additions and 101 deletions.
  1. +0 −94 components/prism-core.css
  2. +0 −7 prism.min.js
@@ -1,94 +0,0 @@
-/**
- * prism.js default theme for JavaScript, CSS and HTML
- * Based on dabblet (http://dabblet.com)
- * @author Lea Verou
- */
-
-.prism {
- background: #f5f2f0;
- color: black;
- text-shadow: 0 1px white;
- direction: ltr;
- text-align: left;
- white-space: pre;
- word-spacing: normal;
-
- -webkit-tab-size: 4;
- -moz-tab-size: 4;
- -o-tab-size: 4;
- tab-size: 4;
-
- -webkit-hyphens: none;
- -moz-hyphens: none;
- -ms-hyphens: none;
- hyphens: none;
-}
-
-pre.prism {
- padding: 1em;
- margin: .5em 0;
- overflow: auto;
-}
-
-code.prism {
- padding: .1em;
- border-radius: .3em;
-}
-
-.comment,
-.line-comment,
-.prolog,
-.doctype,
-.cdata {
- color: slategray;
-}
-
-.punctuation {
- color: #999;
-}
-
-.property,
-.tag,
-.boolean,
-.number {
- color: #905;
-}
-
- .tag > .namespace {
- color: #b37298; /* 70% of .tag on .prism’s background */
- }
-
-.selector,
-.attr-name,
-.string {
- color: #690;
-}
-
- .attr-name > .namespace {
- color: #ab6; /* 70% of .attr-name on .prism’s background */
- }
-
-.operator {
- color: #a67f59;
- background: hsla(0,0%,100%,.5);
-}
-
-.atrule,
-.attr-value,
-.keyword {
- color: #07a;
-}
-
-
-.regex {
- color: #e90;
-}
-
-.important {
- font-weight: bold;
-}
-
-.tab:not(:empty)::before {
- content: '';
- color: hsl(24, 20%, 87%);
-}
View
@@ -1,7 +0,0 @@
-/***********************************************
- Begin prism-core.js
-***********************************************//**
- * Prism: Lightweight, robust, elegant syntax highlighting
- * MIT license http://www.opensource.org/licenses/mit-license.php/
- * @author Lea Verou http://lea.verou.me
- */(function(){var e=/lang(?:uage)?-(\w+)/i,t=self.Prism={tokens:{url:/[a-z]{3,4}s?:\/\/\S+/g},languages:{},highlightAll:function(e,n){var r=document.querySelectorAll("pre.prism, pre.prism > code, code.prism");for(var i=0,s;s=r[i++];){if(/pre/i.test(s.nodeName)&&s.children.length>0)continue;t.highlight(s,e===!0,n)}},highlight:function(n,r,i){if(!n)return;var s=(n.className.match(e)||n.parentNode.className.match(e)||[])[1],o=t.languages[s];if(!o)return;var u=n.textContent||n.innerText;if(!u)return;u=u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u00a0/g," ");var a={element:n,language:s,tokens:o,code:u};t.hooks.run("before-highlight",a);if(r&&self.Worker){self.worker&&self.worker.terminate();var f=new Worker(t.filename);f.onmessage=function(e){a.highlightedCode=e.data;a.element.innerHTML=a.highlightedCode;i&&i.call(a.element);t.hooks.run("after-highlight",a)};f.postMessage(a.language+"|"+a.code)}else{a.highlightedCode=t.tokenize(a.code,a.tokens);a.element.innerHTML=a.highlightedCode;i&&i.call(n);t.hooks.run("after-highlight",a)}},tokenize:function(e,n){var r=[e],i=n.rest;if(i){for(var s in i)n[s]=i[s];delete n.rest}e:for(var s in n){if(!n.hasOwnProperty(s)||!n[s])continue;var o=n[s],u=o.inside,a=!!o.lookbehind||0;o=o.pattern||o;for(var f=0;f<r.length;f++){var l=r[f];if(r.length>e.length)break e;if(l.token)continue;o.lastIndex=0;var c=o.exec(l);if(c){a&&(a=c[1].length);var h=c.index-1+a,c=c[0].slice(a),p=c.length,d=h+p,v=l.slice(0,h+1),m=l.slice(d+1),g=new String(t.wrap(s,u?t.tokenize(c,u):c));g.token=!0;var y=[f,1];v&&y.push(v);y.push(g);m&&y.push(m);Array.prototype.splice.apply(r,y)}}}return r.join("")},wrap:function(e,n){var r={token:e,content:n};r.tag="span";r.classes=["token",e];r.attributes={};e==="comment"&&(r.attributes.spellcheck="true");t.hooks.run("wrap",r);var i="";for(var s in r.attributes)i+=s+'="'+(r.attributes[s]||"")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'" '+i+">"+r.content+"</"+r.tag+">"},hooks:{all:{},add:function(e,n){var r=t.hooks.all;r[e]=r[e]||[];r[e].push(n)},run:function(e,n){var r=t.hooks.all[e];if(!r||!r.length)return;for(var i=0,s;s=r[i++];)s(n)}}};if(!self.document){self.addEventListener("message",function(e){var n=e.data,r=n.indexOf("|"),i=n.slice(0,r),s=n.slice(r+1);self.postMessage(t.tokenize(s,t.languages[i]));self.close()},!1);return}var n=document.getElementsByTagName("script");n=n[n.length-1];if(n){t.filename=n.src;document.addEventListener?document.addEventListener("DOMContentLoaded",t.highlightAll):window.attachEvent&&attachEvent("onload",t.highlightAll)}})();Prism.languages.css={comment:/\/\*[\w\W]*?\*\//g,atrule:/@[\w-]+?(\s+.+)?(?=\s*{|\s*;)/gi,selector:/[^\{\}\s][^\{\}]*(?=\s*\{)/g,property:/(\b|\B)[a-z-]+(?=\s*:)/ig,important:/\B!important\b/gi,ignore:/&(lt|gt|amp);/gi,punctuation:/[\{\};:]/g};Prism.languages.javascript={comment:/\/\*[\w\W]*?\*\//g,regex:{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}/g,lookbehind:!0},"line-comment":/\/\/.*?(\r?\n|$)/g,string:/("|')(\\?.)*?\1/g,keyword:/\b(var|let|if|else|while|do|for|return|in|instanceof|function|new|with|typeof|try|catch|finally|null|break|continue)\b/g,"boolean":/\b(true|false)\b/g,number:/\b-?(0x)?\d*\.?\d+\b/g,operator:/[-+]{1,2}|!|=?&lt;|=?&gt;|={1,2}|(&amp;){1,2}|\|?\||\?|\*|\//g,ignore:/&(lt|gt|amp);/gi,punctuation:/[{}[\];(),.:]/g,tab:/\t/g};Prism.languages.markup={comment:/&lt;!--[\w\W]*?--(>|&gt;)/g,prolog:/&lt;\?.+?\?(>|&gt;)/,doctype:/&lt;!DOCTYPE.+?(>|&gt;)/,script:null,style:null,cdata:/&lt;!\[CDATA\[[\w\W]+]]&gt;/i,tag:{pattern:/(&lt;|<)\/?[\w:-]+\s*[\w\W]*?(>|&gt;)/gi,inside:{tag:{pattern:/^(&lt;|<)\/?[\w:-]+/i,inside:{punctuation:/^(&lt;|<)\/?/,namespace:/^[\w-]+?:/}},"attr-value":{pattern:/=(('|")[\w\W]*?(\2)|[^\s>]+)/gi,inside:{punctuation:/=/g}},punctuation:/\/?&gt;|\/?>/g,"attr-name":{pattern:/[\w:-]+/g,inside:{namespace:/^[\w-]+?:/}}}},entity:/&amp;#?[\da-z]{1,8};/gi};Prism.languages.javascript?Prism.languages.markup.script={pattern:/(&lt;|<)script[\w\W]*?(>|&gt;)[\w\W]*?(&lt;|<)\/script(>|&gt;)/ig,inside:{tag:{pattern:/(&lt;|<)script[\w\W]*?(>|&gt;)|(&lt;|<)\/script(>|&gt;)/ig,inside:Prism.languages.markup.tag.inside},rest:Prism.languages.javascript}}:delete Prism.languages.markup.script;Prism.languages.css?Prism.languages.markup.style={pattern:/(&lt;|<)style[\w\W]*?(>|&gt;)[\w\W]*?(&lt;|<)\/style(>|&gt;)/ig,inside:{tag:{pattern:/(&lt;|<)style[\w\W]*?(>|&gt;)|(&lt;|<)\/style(>|&gt;)/ig,inside:Prism.languages.markup.tag.inside},rest:Prism.languages.css}}:delete Prism.languages.markup.style;Prism.hooks.add("wrap",function(e){e.token==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))});

0 comments on commit 9a21891

Please sign in to comment.