[dokuwiki] Re: Syntax button?

  • From: Christopher Arndt <chris.arndt@xxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 17 Oct 2005 10:44:18 +0100

Joe Lapp schrieb:
> Hey peoples,
> 
> I'm frustrated by the syntax link on the edit form.  It doesn't pop up a new 
> window, forcing me to save what I'm doing and change pages.  I'd rather 
> consult the syntax page while I'm typing.
> 
> I'm not aware of a way to make a wiki link load in a new window.  Perhaps 
> what we need is a special syntax button, one clearly labeled 'syntax' and 
> offset from the square buttons...?

In my installation, I have added the following code to the end of the toolbar
buttons (old system) in the html_edit() function in html.php:

<a href="#" title="<?php echo $lang['qb_syntax'] ?>  [ALT-?]" accesskey="?"
onclick="window.open('<?php echo DOKU_BASE
?>doku.php?id=wiki:syntax&do=export_html', '_syntax',
'height=600,resizable=yes,scrollbars=yes,width=600');return false;"
target="_syntax"><img alt="[?]" src="<?php echo DOKU_BASE
?>lib/images/toolbar/syntaxhelp.png" width="24" height="24" border="0"></a>

in inc/lang/en/lang.php I added:

$lang['qb_syntax'] = 'Show syntax help window';

an icon for lib/images/toolbar/syntaxhelp.png is attached.

Ugly, but it works.

Chris

PNG image

Other related posts: