That did it!!!

It's amazing how long I can bang my head against a wall because of the
wrong type of slash.  Thanks Ton!

Jono


On Feb 10, 10:37 am, TonG <[email protected]> wrote:
> Hi Jono.
>
> You need to use a backslash instead of a slash and double quotes
> around \n, so
>
> config.commands.format.putInPlace("<<<"+"\n"
> +TWkd.context.selection.content+"\n"+"<<<",TWkd.context.selection);
>  }
>
> Regards,
>
> Ton
>
> On Feb 10, 3:06 pm, GeoJono <[email protected]> wrote:
>
> > Hi Ton,
>
> > Thanks for the link.  I tried putting in /n, but I must be doing
> > something wrong.  Here's the new code:
>
> > config.commands.format.addMode({
> >  name:'Multi-line Block',
> >  tooltip:'turns multi-line selection into blocked text',
> >  operation:function(){
> > config.commands.format.putInPlace("<<<"+/n
> > +TWkd.context.selection.content+/n+"<<<",TWkd.context.selection);
> >  }
>
> > });
>
> > and this is the error I got: Error: SyntaxError: invalid regular
> > expression flag n
>
> > Can someone give me some tips on the proper syntax?
>
> > Thanks,
> > Jono
>
> > On Feb 10, 3:34 am, TonG <[email protected]> wrote:
>
> > > I hope this helps:
>
> > >http://groups.google.com/group/TiddlyWiki/browse_thread/thread/16da06...
>
> > > Ton
>
> > > On Feb 9, 11:35 pm, GeoJono <[email protected]> wrote:
>
> > > > I am using easyFormat to more easily format my tiddlers and I have a
> > > > question about it.  I'm trying to add a multi-line block quote into
> > > > it...
>
> > > > to take this:
>
> > > > Multiple lines
> > > > in the
> > > > block quote
>
> > > > and make it this:
>
> > > > <<<
> > > > Multiple lines
> > > > in the
> > > > block quote
> > > > <<<
>
> > > > So far, the only thing I can get it to do is this:
>
> > > > <<<Multiple lines
> > > > in the
> > > > block quote<<<
>
> > > > which doesn't work.
>
> > > > I'd like to know how to make it insert line breaks so that the
> > > > formatting will come out right.
>
> > > > Here's the code for that line:
>
> > > > config.commands.format.addMode({
> > > >  name:'Multi-line Block',
> > > >  tooltip:'turns multi-line selection into blocked text',
> > > >  operation:function(){
> > > > config.commands.format.putInPlace("<<<"+TWkd.context.selection.content
> > > > +"<<<",TWkd.context.selection);
> > > >  }
>
> > > > });
>
> > > > Does anyone know how to insert line breaks in here so that after the
> > > > "<<<" it will go to the next line, and then again before the last
> > > > "<<<"?
>
> > > > Thanks,
> > > > Jono

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to