jEdit Community - Resources for users of the jEdit Text Editor
jEdit Console Commandos for Tcl/Tk
Submitted by Gary Gabriel on Saturday, 29 May, 2010 - 10:38
Hi,

jEdit Console commandos do not currently include Tcl/Tk. I was not
successful in finding any in the archives or references.
- Does anyone have the commandos to bind the Tclsh and Wish interpreters
into the Console and could provide them?


Thanks for your efforts and time- Gary Gabriel
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
TCL
by annie on Tue, 01/06/2010 - 08:03
Thanks Gary for the tips and instruction. This will help a lot. Well, with this on how way to generate a Commando File for Tcl I can easily now solve my homework. Hopefully, you’ll share more codes and techniques with us.
Here's a way to generate a Commando File for Tcl
by Gary Gabriel on Sun, 30/05/2010 - 10:33
Principle
Copy a Commando and use it for the new Tcl application. The Commando as Help states is an .XML file. Change [COMMAND SHELL="System" CONFIRM="FALSE"] buf.append("**" + scriptname); Change "**" to use the normal command line to call the interpreter and compile the buffer.(Angle brackets changed to square brackets for Html conformity.)
Make a copy of a Commando or Commando example
Tcl is very like Perl in structuring the Commando. Make a copy of the Perl Commando and use it as an example. According to the Console Help
The Commando tool bar.
The commando tool bar, which can be enabled in the Console>General pane of the Plugin Options dialog box, has one button for each commando file. Clicking a button opens the commando window for that file.
- This has changed and confuses; now use the Toolbar options and enable the Toolbar Options.
Plugins -> Plugin Options -> Toolbar Options and Toolbar enabled. After enabling do as the help says and Right Click on the perl Commando this opens the Commando .XML file in jEdit. Save it as tcl.XML to the Commando dir in the user profile console dir.
Further jEdit Console Help If you select customize, the xml file will be opened into your current editor. If it's the first time you customized the button, and it was one of the default commandos from from inside the Console.jar, then the file will be copied from the jar into your user settings ${JEDIT_SETTINGS}/console/commando/ directory. Subsequent times, it will just edit that file. At this point, if you want to define a new commando (cmake, for example), just "save as" cmake.xml, and then select Regen Dynamic Menus.
Add Tcl/Tk Executables to the Console Path
Add the Tcl/Tk executables to the Console Path
Console -> System Shell Subshell Extra Path-> Enter C:\msys\1.0\opt\tcl\bin;
For the executables: C:\msys\1.0\opt\tcl\bin\tclsh85.exe and C:\msys\1.0\opt\tcl\bin\wish85.exe
Add the Tcl library path: Plugins -> Plugin Options Console -> System Shell
Subshell Extra Path C:\msys\1.0\opt\tcl\bin; C:\msys\1.0\opt\tcl\lib\sqlite3.6.23 Add the paths separated by ";" Path for TclSQLite library C:\msys\1.0\opt\tcl\lib\sqlite3.6.23 Possibly add path for SQLite3 C:\msys\1.0\local\bin
How to use the Console for Tcl/Tk
Load the target script into jEdit
For example this script C:\SWDevTools\TclTk\TclTk_Tut\Tk_Tut\Tk_Tut_TkDocs\HelloWorld_TkDocs.tcl
In jEdit script buffer call the interpreter: Plugins: -> Console -> Commands -> tcl -> Ok
Alternative: use the Commando Toolbar
Use the button to load the interpreter and run/ compile the script in the buffer.
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300