SyntaxHighlighter3 plugin

27 vues
Accéder directement au premier message non lu

AJ28

non lue,
29 nov. 2011, 22:53:1429/11/2011
à 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

non lue,
30 nov. 2011, 08:18:3030/11/2011
à 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

non lue,
1 déc. 2011, 00:52:1801/12/2011
à 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
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message