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--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a846ef32-9f1f-4540-b721-c84849cef90b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Try:<$codeblock language=“javascript” code={{MyJavaScriptTiddler}}/>Best wishesJeremy.
This is very interesting!! you can have external code files, and display them properly on the wiki without modifying the original file.
Awesome.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c0df6eb4-eed0-443b-8617-133992120afc%40googlegroups.com.
No, I’m afraid not. The codeblock widget just displays the value of the code attribute. It doesn’t do any external file access.You’re not going to get any better than the external file access that’s already been added to 5.1.10, because that’s all that browsers permit us to do.Best wishesJeremy.
Try: <$codeblock language=“javascript” code={{MyJavaScriptTiddler}}/>
there is at least one project I am working at that can make good use of this.Enter code here...
That depends on the platform! I can import a tiddler as an external file (like the Alicia's tiddler) and then transclude it with text. Can't I ?And even if that is not possible, there is at least one project I am working at that can make good use of this.
Regards
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/26396d9c-d8d6-4e40-b049-01b2f46fc1f6%40googlegroups.com.
Hi Jeremy,
Can I use codeblock for external file? For instance:
<$codeblock language="vb" />
<<includeCode file:"myscript.vb">>
</$codeblock>
<$codeblock language="bash" code={{my_bash_script.sh}}/><$codeblock language=bash code={{my_bash_script.sh}}/>
Hi Tobias
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=?!?>/>Try:<$codeblock language=“javascript” code={{MyJavaScriptTiddler}}/>Best wishesJeremy.
Best wishes,— tb--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.

For what is worth, in TW 5.1.19 I tried:<$codeblock language="bash" code={{my_bash_script.sh}}/>And didn't get highlights, but when I tried without doble quotes arround language value:
<$codeblock language=bash code={{my_bash_script.sh}}/>
And the highlights appeared.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f4ec7cbe-f445-47d5-91eb-c3750616f824%40googlegroups.com.