Tk Text Edit

Check-in [94c9b83ec5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Initial revision
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:94c9b83ec58c11a08557395e28a9d3927df12297
User & Date: dennis 2001-02-09 15:57:46
Original User & Date: dennis 2001-02-09 15:57:47
Context
2001-02-09
16:01
Moved to help dir check-in: 4aa6c6b399 user: dennis tags: trunk
15:57
no message Leaf check-in: bb11617bf0 user: dennis tags: avendor, trunk
15:57
Initial revision check-in: 94c9b83ec5 user: dennis tags: trunk
15:38
*** empty log message *** check-in: 8ca4b9e542 user: dennis tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added lib/help/helpfile.











































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
#?-Edit
#?
#? %2Abstract:%
#? Description for all text edit functions
#?
#? %fblue%Function             Name in rc file            Default key binding %fblack% 
#? Cut                    key-delete        Delete
#? Copy                   key-copy          Control-Insert 
#? Paste                  key-paste         Shift-Insert
#? Copy And Cut           key-copycut       Control-Delete
#? Delete line            key-delline       Control-Y
#? %lEvaluate%               key-texteval      Control-E
#? Delete to end of line  key-deltoeol      Control-T
#? Delete to end of word  key-deltoeow      Control-W
#? %LCopy_from...%           key-copyfromclip  Alt-Insert
#? Tag all                key-tagall        Alt-A
#? Next window            key-nextwin       Alt-N
#? Previous window        key-prevwin       Alt-P
#? Go to clipboard        key-clipboard     Alt-B
#? Exit editor            key-exit          Alt-X
#? Save                   key-save          F2
#? SaveAll                key-saveall       Control-F2
#? Load                   key-load          F3
#? Duplicate line         key-dupline       F4
#? Record/Stop macro      key-newmacro      F5
#? Find                   key-find          F7
#? Find Again             key-searchagain   Alt-F7
#? %lSearchSelection%        key-searchsel     F9
#? Goto line              key-goto          F12
#? Save As                key-saveas        Alt-F2
#? Close                  key-closefile     Alt-F3
#? BackSpace              key-backspace     BackSpace
#? Repeat Last Macro      key-lastmacro     Alt-R
#? %LUndo%                   key-undo          Control-Z
#? 
#?
#? Related topics: %lRC%
#?-Copy_from...
#?
#? When used, a file request is presented, and the user is asked
#? to select a file.
#? When selected the file will be loaded and inserted into the
#? Clipboard
#?
#? Use Paste command to insert text into the current open file.
#?
#?-SearchSelection
#?
#? Mark the text you want to search for and 
#? press the key combination for SearchSelection
#?
#?-Evaluate
#?
#? Mark the area you want to evaluate and press the key combination for evaluate.
#? 
#? %1Example.% 
#? mark  1+2+3
#? Hit Evaluate key combination
#? and "1+2+3" is replaced with 6
#?
#?-RC
#? 
#? %2Abstract:%
#? The configuration file is called rc, and it is
#? located in $HOME/.tcltextedit/
#? The rc file contains these items:
#? 
#? Color settings,
#? Font settings,
#? Key definitions,
#? File types.
#? And some parameters that the editor uses to keep track of different parameters.
#?-RecentFiles
#? 
#? In the file->Recent.. menu you will find the last 
#? 6 files you have accessed
#?
#? Just select one file and if it still exists it will be loaded into
#? a new window.
#?
#?-About
#?%2TCL TextEdit v0.9.x%
#?
#? %ptte.gif%
#? 
#? Created by Dennis Ehlin
#? mail: hkc141i@tninet.se
#? http://www.user.tninet.se/~hkc141i
#?
#? Related topics: %lDisclaimer% %lPromotion% 
#?
#?-Promotion
#?
#? Please feel free to use this logo at your homepage
#?
#? %pttenow.gif%
#?
#? Just copy the image "ttenow.gif " and insert the html code below where you want it
#? The image is included in the distribution. 
#?
#? <A HREF="http://user.tninet.se/~hkc141i/edit.html">
#? <IMG SRC="ttenow.gif" BORDER="0"
#? ALT="Get TCL TextEdit now!!"></A>
#?
#?-Disclaimer
#?
#?%2TCL TextEdit v0.9.x%
#?
#?Copyright (c) 1997-1999 Dennis Ehlin
#?
#?Permission is hereby granted, free of charge, to any person obtaining a copy
#?of this software and associated documentation files, to deal
#?in the Software without restriction, including without limitation the rights
#?to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#?copies of the Software, and to permit persons to whom the Software is
#?furnished to do so, subject to the following conditions:
#?
#?The above copyright notice and this permission notice shall be included in
#?all copies or substantial portions of the Software.
#?
#?THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#?IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#?FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
#?AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#?LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#?OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#?THE SOFTWARE
#?
#?-Problems?
#?
#? If you have any problems or if you have any ideas, dont hesitate to
#? Send me a mail message.
#? 
#? You can find my mail address here %lAbout%
#?
#?-Execute
#?  
#? Executes the command entered in the input field
#?
#? %2Formating:%
#? %%f  -  Current open file
#? %%p  -  Path to current open file
#?
#? %2Example:%
#? "xterm -e joe %%f &" 
#? Starts an xterm with the editor joe and loads the current open file.
#?
#? 
#?-File
#?
#? %2File Menu%
#?
#?   %2New file.%
#?   Creates a new empty window.
#?   If you change to another window without typing in anything in the new window it dissappears.
#?
#?   %2Open.%
#?   Prompts the user for a file, and opens it in a new window.
#?
#?   %2Save.%
#?   If the file allready has a filename it will be saved at the same location and filename.
#?   If the file does not have a filename the user will be prompted for a filename. 
#?
#?   %2Save_As...%
#?   Allways prompts the user for a filename before saving the file.
#?
#?   %2Save_All.%
#?   Saves all open files, if a file is missing a filename the user will be prompted for a filename.
#?
#?   %2Recent.%
#?     See %LRecentFiles%
#?
#?   %2Net.%
#?     See %LNet%
#?
#?   %2Execute.%
#?     See %LExecute%
#?
#?   %2Close.%
#?   Closes the file in the current active window.
#?   if the file is unsaved there will be a warning message.
#?
#?   %2Close All.%
#?   Closes all open files.
#?   if there are unsaved files there will be a warning message.
#?
#?   %2Exit.%
#?   Exits the editor.
#?   if the file is unsaved there will be a warning message.
#?
#?
#?-Net
#?
#? %2Abstract%
#? The Net menu contains 3 items Open URL,Open FTP, Save As FTP 
#? 
#? %2Open URL%
#? Just enter the complete url including the filename and hit Ok.
#? The file will be downloaded into a new edit window via the HTTP protocol.
#?
#? %2Open FTP%
#? Just enter address,username,password and path+filename.
#? If the save funtion is used after opening a file via ftp, the
#? editor will try to upload the file via ftp with the same parameters 
#? as it was opened with.
#? 
#? %2Save As FTP%
#? 
#?
#?
#?
#? Related topics: %lFILE%
#?-Find
#?
#? Enter the "string" you want to search for in the input box "Find what" and then push the "Find next" button.
#? The next occurance of the "string" in the text will be marked, if you want to find the next occurance-
#? push the "Find next" button once more.
#?
#? The match case makes the search case sensitive.
#? The Up and Down radio buttons indicates in which direction the search will go.
#?
#? Note. The search allways starts from where the cursor is positioned.
#?
#? For the Grep function see %LGrep%
#?
#?-Grep
#?
#? Enter the "string" you want to search for in the input box "Find what" and then push the "Grep" button. 
#? The editor will now search for all occurances of "string" in all open files.
#? The result will be presented in a Listbox where you can navigate amongst the files and the occurances of "string"
#?
#?-Replace
#?
#? Enter the "string" you want to search for in the input box "Find what" and
#? enter the "string2" that you wish to replace it with in the "Replace with" input box.
#?  
#? If you push the "Replace" button the editor will replace the next occurance of "string" with "string2".
#? If you push the "Replace all" button the editor will replace all occurrances of "string" with "string2" in the current open file.
#?
#? If the "Confirm replace" checkbox is checked you will be prompted before the editor will replace anything.
#?
#? Related topics: %LFind%
#?-FTP_package
#?
#?   tcl FTP package -- 
#?  Created:	12/96 
#?  Changed:    05/98                            
#?  Version:    1.02
#?
#?   Copyright (C) 1996-1998, Steffen Traeger
#?	EMAIL:	Steffen.Traeger@t-online.de
#?	URL:	http://home.t-online.de/home/Steffen.Traeger
#?
#?   This package is free software; you can redistribute it and/or 
#?   modify it. 
#?   This library is distributed in the hope that it will be useful,
#?   but WITHOUT ANY WARRANTY; without even the implied warranty of
#?   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#?
#?  The description of the procedures are partly exerpted from RFC 959.
#?   For more details see also RFC 959, RFC 1123, RFC 1579.
#?
#?-Mouse
#?
#? %2Popup menus:%
#? Push right button anywhere in the text box and the "Edit" menu will appear.
#? Push right button + shift and the Search menu will appear.
#?
#? %2Mark text%
#? Push the left button at the begining of the text you want to mark, move
#? the cursor to the end of the text you want to mark and release the button.
#?
#? Doubble clicking in the text will mark a whole word.
#? Tripple clicking in the text will mark a whole line.
#?
#? %2Wheel mouse ?%
#?
#? TCltextEdit is prepared for wheel mouse but it must be enabled in X
#?
#? This is how I did it, but I cant garantee that it will work for you.
#? I have a Logitech wheelmouse, and I use XFree86 Version 3.3.2.3.
#? 
#? This goes in to XF86Config under Section "Pointer"
#?
#?    Protocol    "intellimouse"
#?    Device      "/dev/mouse"
#?    ZAxisMapping 4 5
#?
#? Do not fiddle with these parameters if you're not sure of what you're doing.
#?
#?-StatusLine
#?
#? This is the status line, it is located just beneith the "text window"
#?
#? #1 Changed or Unchanged, Tells you if your text is saved or not.
#? #2 Indicates which line the cursor is positioned at, [row.column].
#? #3 The full name of the file in the active window.
#? #4 Status text, tells you important information about the editor.
#? #5 Push the left or right mouse button and rezise the window.
#?
#? %Pstatus.gif%
#?
#?-Macro-Dialog
#?  
#? usage: Dialog name inputname 
#?
#? The built in macro displays a general dialog.
#?
#? %Pdlg.gif%
#?
#? Return: 
#? If the ok button is pressed the text in the input box is returned
#? otherwise *cancel is returned.
#?
#? %2Example%2
#?
#? Dialog "TestDlg" "Enter your name: "
#?
#? Related topics: %lMacros%
#?-Help
#? 
#? You are looking at it.
#?
#? %2Navigation%
#? 
#? Press INDEX to get to the index page 
#? Press BACK to go to the recently accessed page
#? Press FORWARD to go to the page you were on when you pressed the BACK button
#? To exit help choose anoter window in the Windows menu
#?
#? If you want to send me a message here is my mail address %lAbout%
#?
#?-Macros
#?
#? Tcltextedit has the ability to record and play macros.
#? Macros are by default stored in $HOME/.tcltextedit/???.mac
#? where ??? stands for the name of the macro.
#? The macro files are plain tcl scripts, that makes it possible
#? for any person with knowledge of tcl to customize your own macros.
#?
#? %2Recording:%
#? You record macros by selecting the menu: Macro->Record Macro.
#? When recording is activatef text appear in the status line telling
#? you that the recording mode is active.
#? 
#? The just use the editor as usual and all your actions will be recorded.
#? 
#? To stop recording shoose: Macro->Stop recording, and a prompt will
#? appear asking you to shoose a name for your macro.
#? When you hit the Ok button your macro will be stored.
#?
#? Related topics: %lSPEEDBUTTONS% %lMACRO_MANAGER% %lMACRO_EDITING%
#? 
#?-Macro_Manager
#?
#? The macro manager is a dialog that will help you to manage your macro
#? files.
#?
#? You can use it to edit/delete/rename and make new macro files.
#?
#? Related topics: %lMACROS% %lMACRO_EDITING%
#?
#?-Macro_Editing
#?
#? There are currently tow ways to create macro files from within the 
#? text editor.
#? 
#? %2 1. Record macro%
#?
#? %2 2. Create macro files with the% %lMACRO_MANAGER% 
#?
#? There are also two different types of macros.
#?
#? %2 1. Tk/Tcl macro files.%
#?     This type is automatically created when a macro is recorded.
#?
#? %2 2. Shell macro files.%
#?     This type of macro files must be created from the %lMACRO_MANAGER%
#?     
#?     These files must contain "#!/bin/sh" as the first line, otherwise
#?     the texteditor won't recognise it as a shell macro.
#?
#?     When a shell macro is executed it will either be executed in the
#?     background, or if the TextShell window is open, it will be executed there. 
#?
#? Related topics: %lMACROS% %lMACRO_MANAGER%
#?-mclistbox.tcl
#? Copyright (c) 1999, Bryan Oakley
#? All Rights Reservered
#?
#? Bryan Oakley
#? oakley@channelpoint.com
#?
#? mclistbox v1.02 March 30, 1999
#?
#? a multicolumn listbox written in pure tcl
#?
#? this code is freely distributable without restriction, but is 
#? provided as-is with no waranty expressed or implied. 
#?
#?-Speedbuttons
#?
#? %2Abstract:%
#? Speed buttons is the buttons just below the menu bar.
#? All speed buttons is linked to a user defined macro.
#?
#? %2Adding:%
#? To add a speed button "right-click" anywhere on the speed button bar and
#? select Assign, and a list with all available macros will appear.
#? Just select the macro you want to add and a button with that macros name
#? will apear.
#?
#? %2Remove:%
#? To remove a speed button "right-click" on the speed button you want to remov
#? and select remove this.
#?
#? Related topics: %lMACROS%
#?
#?-Supertext.tcl
#?
#? Supertext.tcl v1.0b1 (Modified by Dennis Ehlin 990514)
#?
#? Copyright (c) 1998 Bryan Oakley
#? All Rights Reserved
#?
#? this code is freely distributable, but is provided as-is with
#? no waranty expressed or implied.
#?
#? send comments to oakley@channelpoint.com
#?
#?-Undo
#?
#? Tcltextedit has an Udo buffer, all windows has it's own undo buffer.
#? 
#? To use the undo function select undo in the Edit menu or use the key combination.
#? The last thing that you modified will be unmodified.
#?