1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-31 01:48:02 +00:00

codeblock as a widget and plugin for highlight code blocks

This commit is contained in:
João Bolila
2014-01-07 22:57:46 +00:00
parent 4181de5b74
commit 82a48cf85c
5 changed files with 101 additions and 51 deletions

View File

@@ -7,3 +7,7 @@ The HighlightExample tiddler have fenced blocks of code.
To add the plugin to your own TiddlyWiki5, just drag this link to the browser window:
[[$:/plugins/tiddlywiki/highlight]]
To add your prefered [[theme|http://highlightjs.org/static/test.html]] append to your:
[[$:/boot/boot.css]]

View File

@@ -2,7 +2,7 @@ title: HighlightExample
''Javascript'' fenced code:
```
```javascript
(function(a,b){
var result = a+b;
return result;
@@ -11,7 +11,7 @@ title: HighlightExample
''CSS'' fenced code:
```
```css
* { margin: 0; padding: 0; } /* micro reset */
html { font-size: 62.5%; }
@@ -21,7 +21,7 @@ h1 { font-size: 24px; font-size: 2.4rem; } /* =24px */
''Perl'' fenced code:
```
```perl
package Name;
my $singleton;
@@ -49,3 +49,9 @@ class Singleton:
raise Singleton.__single
Singleton.__single = self
```
''~No-Highlight'' now
```no-highlight
$ TW5_BUILD_OUTPUT=tmp/ ./bld.sh
```