Add code syntax highlighting
This commit is contained in:
parent
72c11c57f6
commit
b1ead01e14
@ -6,14 +6,18 @@
|
||||
|
||||
<title>@title</title>
|
||||
|
||||
<!-- TODO: Convert stylesheets -->
|
||||
<link rel="stylesheet" href="css/latex.css"/>
|
||||
<!-- <link rel="stylesheet" href="lib/css/zenburn.css">-->
|
||||
<link rel="stylesheet" href="lib/highlightjs/zenburn.css"/>
|
||||
</head>
|
||||
<body>
|
||||
@slides
|
||||
<div id="progress-bar"></div>
|
||||
<!-- TODO: Convert scripts -->
|
||||
|
||||
<script src="onpoint/slidify.js"></script>
|
||||
<script src="lib/highlightjs/highlight.pack.js"/>
|
||||
<script>
|
||||
console.log('test')
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
2
lib/highlightjs/highlight.pack.js
Normal file
2
lib/highlightjs/highlight.pack.js
Normal file
File diff suppressed because one or more lines are too long
80
lib/highlightjs/zenburn.css
Normal file
80
lib/highlightjs/zenburn.css
Normal file
@ -0,0 +1,80 @@
|
||||
/*
|
||||
|
||||
Zenburn style from voldmar.ru (c) Vladimir Epifanov <voldmar@voldmar.ru>
|
||||
based on dark.css by Ivan Sagalaev
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #3f3f3f;
|
||||
color: #dcdcdc;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-tag {
|
||||
color: #e3ceab;
|
||||
}
|
||||
|
||||
.hljs-template-tag {
|
||||
color: #dcdcdc;
|
||||
}
|
||||
|
||||
.hljs-number {
|
||||
color: #8cd0d3;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-attribute {
|
||||
color: #efdcbc;
|
||||
}
|
||||
|
||||
.hljs-literal {
|
||||
color: #efefaf;
|
||||
}
|
||||
|
||||
.hljs-subst {
|
||||
color: #8f8f8f;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-name,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-section,
|
||||
.hljs-type {
|
||||
color: #efef8f;
|
||||
}
|
||||
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-link {
|
||||
color: #dca3a3;
|
||||
}
|
||||
|
||||
.hljs-deletion,
|
||||
.hljs-string,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name {
|
||||
color: #cc9393;
|
||||
}
|
||||
|
||||
.hljs-addition,
|
||||
.hljs-comment,
|
||||
.hljs-quote,
|
||||
.hljs-meta {
|
||||
color: #7f9f7f;
|
||||
}
|
||||
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
@ -376,10 +376,10 @@ Structure your document and text
|
||||
|
||||
@content
|
||||
* Download the project archive from the VC, unzip it and open the file `allgemeines.tex` in TeXStudio.
|
||||
* ++Wrap the entire Text (incl. comments) in `allgemeines.tex` in a **document** environment and insert the following **preamble** above, so that you can compile the document:
|
||||
* ++Wrap the entire text (incl. comments) in `allgemeines.tex` in a **document** environment and insert the following **preamble** above, so that you can compile the document:
|
||||
|
||||
``` {.lang-tex .hljs .fragment}
|
||||
<code>\documentclass{scrartcl}
|
||||
\documentclass{scrartcl}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[ngerman]{babel}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user