Lines Matching +full:style +full:. +full:local +full:. +full:ini

1 # Highlight.js
3 Highlight.js highlights syntax in code examples on blogs, forums and
4 in fact on any web pages. It's very easy to use because it works
5 automatically: finds blocks of code, detects a language, highlights it.
7 Autodetection can be fine tuned when it fails by itself (see "Heuristics").
11 Downloaded package includes file "highlight.pack.js" which is a full compressed
12 version of the library intended to use in production. All uncompressed source
18 <script type="text/javascript" src="highlight.pack.js"></script>
20 hljs.initHighlightingOnLoad();
27 hljs.tabReplace = ' '; // 4 spaces
28 // ... or
29 hljs.tabReplace = '<span class="indent">\t</span>';
31 hljs.initHighlightingOnLoad();
34 Despite highlight.pack.js already includes only those languages that you need sometimes
39 hljs.initHighlightingOnLoad('html', 'css');
42 A full list of available classes is below ("Languages").
44 Then the script looks in your page for fragments `<pre><code>...</code></pre>`
45 that are used traditionally to mark up code examples. Their content is
46 marked up by logical pieces with defined class names. The classes are
47 used to actually style the code elements:
49 .comment {
53 .keyword {
57 .python .string {
61 .html .atribute .value {
65 Highligt.js comes with several style themes located in "styles" directory that
66 can be used directly or as a base for your own experiments.
70 Generally installing highlight.js in a [WordPress][wp] blog is no different
71 than for any other web page. However it can also be installed as a plugin.
73 have a permission to edit template and style files. Or it may be more convenient
74 to you this way.
76 To install the plugin copy the whole directory with highlight.js to the
77 WordPress plugins directory. After this you can activate and deactivate it
78 from the Plugins panel. There is also a page "highlight.js" under the Options
79 menu where you can set a list of languages and style rules. Insanely convenient :-)
81 [wp]: http://wordpress.org/
86 File export.html contains a little program that shows and allows to copy and paste
87 an HTML code generated by the highlighter for any code snippet. This can be useful
88 in situations when one can't use the script itself on a site.
94 syntactic structures. In parentheses after language names are identifiers
95 used as class names in `<code>` element.
105 function function header "def some_name(...):"
106 class class header "class SomeName(...):"
126 subst in-string substitution (#{...})
128 function function header "def some_name(...):"
129 class class header "class SomeName(...):"
161 pi processing instruction (<? ... ?>)
171 doctype <!DOCTYPE ... > declaration
179 class .some_name in selectors
182 pseudo pseudo classes and elemens (:after, ::after etc.)
198 doctype <!DOCTYPE ... > declaration
201 template_tag template tag {% .. %}
202 variable template variable {{ .. }}
203 template_comment template comment, both {# .. #} and {% comment %}
259 stl_container instantiation of STL containers ("vector<...>")
267 xmlDocTag xmldoc tag ("///", "<!--", "-->", "<..>")
273 string string (including @"..")
300 string string (of any type: "..", '..', `..`)
314 localvars block of local variables
327 quoted_list quoted list, both "(quote .. )" and "'(..)"
329 Ini ("ini"):
343 sqbracket variables in rewrites "%{..}"
344 cbracket options in rewrites "[..]"
351 stream DOS special files ("con", "prn", ...)
352 winutils some commands (see dos.js specifically)
406 localvars substitution in .macro
421 counts all syntactic structures that it finds along the way. The language
422 with greatest count wins.
425 (and it really happens sometimes). In this cases you can set the fragment's
428 <pre><code class="html">...</code></pre>
431 "language-php". Classes also can be assigned to the `<pre>` element.
435 <pre><code class="no-highlight">...</code></pre>
440 URL: http://softwaremaniacs.org/soft/highlight/en/
441 Author: Ivan Sagalaev (Maniac@SoftwareManiacs.Org)
443 For the license terms see LICENSE files.
444 For the list of contributors see AUTHORS.en.txt file.