← Back to team overview

zim-wiki team mailing list archive

Re: Modifying selected text bbcode…

 

On Fri, Jun 6, 2014 at 6:38 PM, Sylvain Viart <launchpad@xxxxxxxxxxxx>
wrote:

>  Hum,
>
> I know how to modify the whole page with a custom tools.
> Can I modify only the selection?
>
>  Some text here and more here…
>
> ^^^^^^^^^ Selected text
>
>
> can I produce?
>
> [quote]Some text[/quote] here and more here…
>
>
Not an easy way to do that, but you could do a custom tool that takes both
the full page and the selected text and then looks up the selection and
replaces it.

You can define a custom tool command with "%t" to get the selected text as
a commandline argument.

Regards,

Jaap

Follow ups

References