Skip to content
Browse files

sample.css

  • Loading branch information...
1 parent d751ce4 commit 2e8a4649d79a3fcda466134e15d4dbc578ec6a1f maniac committed Apr 13, 2007
Showing with 62 additions and 56 deletions.
  1. +2 −0 readme.eng.txt
  2. +3 −0 readme.rus.txt
  3. +55 −0 sample.css
  4. +2 −56 test.html
View
2 readme.eng.txt
@@ -47,6 +47,8 @@ used to actually style the code elements:
.html .atribute .value {
color: green;
}
+
+You can use included sample.css as a starting point for you own style.
A full list of available classes is below ("Languages").
View
3 readme.rus.txt
@@ -51,6 +51,9 @@ Highlight.js нужен для подсветки синтаксиса в при
color: green;
}
+Можно использовать sample.css из комплекта как стартовую точку для собственного
+стиля.
+
Полный список классов для разных языков приведен ниже ("Языки").
### Плагин к WordPress
View
55 sample.css
@@ -0,0 +1,55 @@
+pre code[class]:after {
+ content: 'highlight: ' attr(class);
+ display: block; text-align: right;
+ font-size: smaller;
+ color: #CCC; background: white;
+ border-top: solid 1px;
+ padding-top: 0.5em;
+}
+
+pre code {
+ display: block;
+ background: #F0F0F0;
+}
+
+pre code,
+.ruby .subst {
+ color: black;
+}
+
+.string,
+.function .title,
+.class .title,
+.tag .attribute .value,
+.css .rules .value,
+.cpp .preprocessor,
+.ruby .symbol,
+.vbscript .built_in {
+ color: #800;
+}
+
+.comment,
+.java .annotation {
+ color: #888;
+}
+
+.number,
+.regexp,
+.javascript .literal {
+ color: #080;
+}
+
+.javadoc,
+.ruby .string,
+.python .decorator {
+ color: #88F;
+}
+
+.keyword,
+.css .id,
+.phpdoc,
+.function .title,
+.class .title,
+.vbscript .built_in {
+ font-weight: bold;
+}
View
58 test.html
@@ -1,62 +1,8 @@
<!DOCTYPE html>
<head>
<title>Highlight</title>
- <style>
- code[class]:after {
- content: 'highlight: ' attr(class);
- display: block; text-align: right;
- font-size: smaller;
- color: #CCC; background: white;
- border-top: solid 1px;
- padding-top: 0.5em;
- }
-
- code {
- display: block;
- background: #F0F0F0;
- }
-
- .string,
- .function .title,
- .class .title,
- .tag .attribute .value,
- .css .rules .value,
- .cpp .preprocessor,
- .ruby .symbol,
- .vbscript .built_in {
- color: #800;
- }
-
- .comment,
- .python .decorator,
- .java .annotation {
- color: #888;
- }
-
- .number,
- .regexp,
- .javascript .literal {
- color: #080;
- }
-
- .javadoc,
- .ruby .string {
- color: #88F;
- }
-
- .keyword,
- .css .id,
- .phpdoc,
- .function .title,
- .class .title,
- .vbscript .built_in {
- font-weight: bold;
- }
-
- .ruby .subst {
- color: black;
- }
- </style>
+
+ <link rel="stylesheet" href="sample.css">
<script type="text/javascript" src="highlight.js"></script>
<script type="text/javascript">

0 comments on commit 2e8a464

Please sign in to comment.
Something went wrong with that request. Please try again.