SyntaxHighlighter3 plugin

27 views
Skip to first unread message

AJ28

unread,
Nov 29, 2011, 10:53:14 PM11/29/11
to TiddlyWiki
Hi

I have just started using the SyntaxHighlighter3 plugin, thanks Mario.

I would like to have it ignore / use my default formatting for any
{{{ blocks.

I see that in expert mode there is an entry for "{{{ txtShText:" so is
there a value that can be entered here that causes, the {{{ blocks to
not be touched?

OR do I need to create a "blank" shBrushBlank.js Brush, what is the
minimum required in that to achieve this result?

--
Thanks
AJ

PMario

unread,
Nov 30, 2011, 8:18:30 AM11/30/11
to TiddlyWiki
Hi AJ,

On Nov 30, 4:53 am, AJ28 <ayj...@gmail.com> wrote:
> I would like to have it ignore / use my default formatting for any
> {{{ blocks.

What is your "default" format?

The plugin uses ShBrushPlain.js format for {{{
The ..Info tiddler [1] "Advanced Options" tells you more about user
defined brushes.

> I see that in expert mode there is an entry for "{{{ txtShText:" so is
> there a value that can be entered here that causes, the {{{ blocks to
> not be touched?

So you want to use TW default here?

Just did a short test:
- check option "chkExpertSyntax"
- check option "chkGuessSyntax"
and set
- txtShText: anyClass

the others will be "undefined"

it will add a class="anyClass" to {{{ blocks. So you can use .anyClass
for additional styling if needed. If .anyClass is not defined, it will
use TW defaults. That should do, what you want. Have a look at [1]

have fun!
mario

[1] http://syntaxhighlighter.tiddlyspace.com/#SyntaxHighlighterPlugin3Info

AJ28

unread,
Dec 1, 2011, 12:52:18 AM12/1/11
to tiddl...@googlegroups.com


On Wednesday, November 30, 2011 11:18:30 PM UTC+10, PMario wrote:
Hi AJ,

On Nov 30, 4:53 am, AJ28 <ayj...@gmail.com> wrote:
> I would like to have it ignore / use my default formatting for any
> {{{ blocks.
What is your "default" format?

Yes, it's simply the TW default.
 

The plugin uses ShBrushPlain.js format for {{{
The ..Info tiddler [1] "Advanced Options" tells you more about user
defined brushes.

> I see that in expert mode there is an entry for "{{{ txtShText:" so is
> there a value that can be entered here that causes, the {{{ blocks to
> not be touched?
So you want to use TW default here?

Yes
 

Just did a short test:
 - check option "chkExpertSyntax"
 - check option "chkGuessSyntax"
and set
 - txtShText: anyClass

the others will be "undefined"

it will add a class="anyClass" to {{{ blocks. So you can use .anyClass
for additional styling if needed. If .anyClass is not defined, it will
use TW defaults. That should do, what you want. Have a look at [1]

Excellent, that did the trick just fine - I knew it would be easy!! :D
 

have fun!
mario

Will do, thanks Mario
 

[1] http://syntaxhighlighter.tiddlyspace.com/#SyntaxHighlighterPlugin3Info


--
Thanks
AJ
Reply all
Reply to author
Forward
0 new messages