[TW5] using highlight.js for transcluded code

8 views
Skip to first unread message

Tobias Beer

unread,
Oct 1, 2015, 1:50:46 AM10/1/15
to tiddl...@googlegroups.com
Using highlight plugin, how would I actually highlight the source of a core tiddler rather than the code to retrieve it?

For example:

```javascript
<$view tiddler="$:/core" subtiddler="$:/core/modules/startup/info.js"/>
```


The codeblock widget appears to be missing any documentation.

Trying to decipher it, I noticed that this won't work:

<$codeblock language="javascript"><$view tiddler=<<core>> subtiddler={{!!subtiddler}}/></codeblock>

So, how would I do...

<$codeblock language="javascript" code=?!?/>

Best wishes,

— tb
Reply all
Reply to author
Forward
0 new messages