Cosmetic changes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
diff --git a/index.html b/index.html
index efffe25..ed8c0d1 100644
--- a/index.html
+++ b/index.html
@@ -74,6 +74,8 @@
<li>Very easy to <a href="extending.html#language-definitions">define new languages</a>. Only thing you need is a good understanding of regular expressions</li>
<li>All styling is done through CSS, with <a href="faq.html#how-do-i-know-which-tokens-i-can-style-for">sensible class names</a> rather than ugly namespaced abbreviated nonsense.</li>
<li>Wide browser support: IE9+, Firefox, Chrome, Safari, Opera, most Mobile browsers</li>
+ <li>Highlights embedded languages (e.g. CSS inside HTML, JavaScript inside HTML)</li>
+ <li>Highlights inline code, not just code blocks</li>
<li>Highlight specific lines and/or line ranges (requires <a href="plugins/line-highlight/">plugin</a>)</li>
<li>Show invisible characters like tabs, line breaks etc (requires <a href="plugins/show-invisibles/">plugin</a>)</li>
</ul>
@@ -95,13 +97,13 @@
<pre><code><!DOCTYPE html>
<html>
<head>
- ...
- </code><code class="highlight"><link href="prism.css" rel="stylesheet" /></code><code>
-</head>
+ ...</code>
+ <code class="highlight"><link href="prism.css" rel="stylesheet" /></code>
+<code></head>
<body>
- ...
- </code><code class="highlight"><script src="prism.js"></script></code><code>
-</body>
+ ...</code>
+ <code class="highlight"><script src="prism.js"></script></code>
+<code></body>
</html></code></pre>
<p>Prism does its best to encourage good authoring practices. Therefore, it only works with <code><code></code> elements, since marking up code without a <code><code></code> element is semantically invalid.
diff --git a/style.css b/style.css
index fdafbb9..2fcd234 100644
--- a/style.css
+++ b/style.css
@@ -103,8 +103,8 @@ pre {
}
pre > code.highlight {
- background: white;
- box-shadow: 0 0 .8em .4em white;
+ outline: .4em solid red;
+ outline-offset: .4em;
}
header,
diff --git a/templates/header-main.html b/templates/header-main.html
index 283685e..70e1052 100644
--- a/templates/header-main.html
+++ b/templates/header-main.html
@@ -4,5 +4,5 @@
<p>
Prism is a new lightweight, extensible syntax highlighter, built with modern web standards in mind.
- It’s a spin-off from <a href="http://dabblet.com">Dabblet</a> and is tested there daily by thousands of users.
+ It’s a spin-off from <a href="http://dabblet.com">Dabblet</a> and is tested there daily by thousands.
</p>
\ No newline at end of file