Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: bower_components/prettify-element/prettify-element.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: bower_components/prettify-element/prettify-element.html
diff --git a/bower_components/prettify-element/prettify-element.html b/bower_components/prettify-element/prettify-element.html
deleted file mode 100644
index f1a93a72be55c212ca73cfea847263e4129cf692..0000000000000000000000000000000000000000
--- a/bower_components/prettify-element/prettify-element.html
+++ /dev/null
@@ -1,120 +0,0 @@
-<!--
- @license
- Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
- Code distributed by Google as part of the polymer project is also
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
--->
-<link rel="import" href="prettify-import.html">
-<link rel="import" href="../polymer/polymer.html">
-
-<!--
-Element wrapper for the `google-code-prettify` (https://code.google.com/p/google-code-prettify/) library.
-
-##### Example
-
- <prettify-element text="def somefunc(param1='', param2=0):"></prettify-element>
-
-##### Example
-
- <prettify-element>
- <template>
-
- <link rel="import" href="/components/polymer/polymer.html">
- <polymer-element name="proto-element">
- <template>
- <span>I'm <b>proto-element</b>. Check out my prototype.</span>
- </template>
- <script>
- Polymer({
- });
- </script>
- </polymer-element>
-
- </template>
- </prettify-element>
-
-@class prettify-element
-@blurb Element wrapper for the highlightjs library.
-@status alpha
-@snap snap.png
--->
-<polymer-element name="prettify-element" attributes="text">
-
- <template>
-
- <style>
- :host {
- display: block;
- }
-
- code,pre {
- color: #9f499b;
- font-family: "Source Code Pro",Monaco,Menlo,Consolas,"Courier New",monospace
- }
- pre,.prettyprint {
- background-color: #fafafa;
- padding: 16px;
- margin: 30px 0
- }
- pre .typ,pre .inline,.prettyprint .typ,.prettyprint .inline {
- color: #6b499f
- }
- pre .pun,.prettyprint .pun {
- color: #5c6bc0
- }
- pre .str,pre .string,.prettyprint .str,.prettyprint .string {
- color: #ff4081
- }
- pre .pln,.prettyprint .pln {
- color: #7986cb
- }
- pre .kwd,.prettyprint .kwd {
- color: #d61a7f
- }
- pre .atn,pre .attribute-name,.prettyprint .atn,.prettyprint .attribute-name {
- color: #6b499f
- }
- pre .atv,pre .attribute-value,.prettyprint .atv,.prettyprint .attribute-value {
- color: #7986cb
- }
- pre .com,pre .comment,.prettyprint .com,.prettyprint .comment {
- color: #8a8a8a
- }
-
- </style>
-
- <!-- Pre-canned styles that come with prettify (we opt for more pleasing light theme) -->
- <!-- <link href="../google-code-prettify/src/prettify.css" rel="stylesheet" /> -->
- <!-- <link href="../google-code-prettify/styles/sons-of-obsidian.css" rel="stylesheet" /> -->
- <!-- <link href="../google-code-prettify/styles/sunburst.css" rel="stylesheet" /> -->
-
- <pre class="prettyprint" id="content"></pre>
-
- </template>
-
- <script>
-
- Polymer('prettify-element', {
-
- domReady: function() {
- if (!this.text) {
- if (this.firstElementChild && this.firstElementChild.localName === 'template') {
- this.text = this.firstElementChild.innerHTML;
- } else {
- this.text = this.innerHTML;
- }
- }
- },
-
- textChanged: function() {
- this.$.content.innerHTML = prettyPrintOne((this.text || '').replace(/</g,'&lt;').replace(/>/g,'&gt;'));
- }
-
- });
-
- </script>
-
-</polymer-element>
« no previous file with comments | « bower_components/prettify-element/index.html ('k') | bower_components/prettify-element/prettify-import.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698