<p>There below is a zip file providing a context help on Tcl/Tk commands and keywords while editing Tcl script in Geany IDE.</p>
<p>By context help I mean the following: while editing a file.tcl in Geany you can set the caret on desirable Tcl command/keyword and press Ctrl+F1 (or F1, if you map it to Geany's context action) - after that you should get a help (man) page for the Tcl command/keyword.</p>
<p>Man pages of <a href="http://www.tcl.tk" rel="nofollow">www.tcl.tk</a> are remarkable with their giving a separate man page (as html file) for each single entry. So, we can organize their viewing on context base.</p>
<p>And Geany is remarkable with its customizing options and one of them is a context action. The action  may be tuned and called for a word or text selection from popup menu or with a hotkey.</p>
<hr>
<p>Now let's customize Tcl/Tk context help in Geany IDE. As a bonus you'll get a menu of commands to use in Geany IDE unrelated to Tcl/Tk directly, thus Geany and Tcl/Tk would <strong>help each other</strong> as declared.</p>
<p>Please try this:</p>
<p><strong>1</strong>. If you do not have Tcl/Tk on your system, install it from <a href="http://www.tcl.tk" rel="nofollow">www.tcl.tk</a>. Linux users have it preinstalled, most likely.</p>
<p><strong>2</strong>. Unpack the below attached zip to save files:</p>
<pre><code>    e_help.tcl
    e_menu.tcl
    run_pause.bat
    run_pause.sh
</code></pre>
<p>into some directory, e.g. /home/me/UTILS</p>
<p><strong>3</strong>. Go to Geany's menu 'Edit/Settings', then to 'Tools' page and enter in the 'Context action' field:</p>
<pre><code>    wish /home/me/UTILS/e_menu.tcl "s=%s"
</code></pre>
<p><strong>4</strong>. In /home/me/UTILS/e_help.tcl change the lines containing:</p>
<pre><code>     set my_browser "...put your browser as last here, others may be removed..."
</code></pre>
<p><strong>5</strong>. In /home/me/UTILS/e_menu.tcl change the lines containing:</p>
<pre><code>    run_pause.sh   (for Linux)
    run_pause.bat  (for Windows)
</code></pre>
<p>so that they were the full pathnames:</p>
<pre><code>    /home/me/UTILS/run_pause.sh
    /home/me/UTILS/run_pause.bat
</code></pre>
<hr>
<p>Uff. Now you should be able to call the context help. While editing your Tcl/Tk script, select a Tcl/Tk command or simply place the caret on it and call "Context action" from popup menu. You should see something like:</p>
<p><a target="_blank" href="https://user-images.githubusercontent.com/37333988/37510187-62b1a500-290b-11e8-8f2f-056a3bba1f49.jpg"><img src="https://user-images.githubusercontent.com/37333988/37510187-62b1a500-290b-11e8-8f2f-056a3bba1f49.jpg" alt="tcl_geany" style="max-width:100%;"></a></p>
<p>where 1st line calls Tcl/Tk help for "selection" (i.e. foreach, string, grid, panedwindow etc. - about 200 Tcl/Tk man pages and 26 pages of Tcl keywords from A.htm to Z.htm)</p>
<p>Other lines execute "selection" as an executable program by itself and by shell in console, with or without waiting their completion.</p>
<hr>
<p><a href="https://github.com/geany/geany/files/1818354/tcl_and_geany.zip">tcl_and_geany.zip</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1808">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJwSJb0ptjcW5CVmP5oX5h9P9AZatks5te3aEgaJpZM4StZ4D">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ56cZeCHgHVjKV5a_62haldseArgks5te3aEgaJpZM4StZ4D.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1808"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Geany and Tcl/Tk: how they can help each other (#1808)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1808"}}}</script>