Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » add .tm extension for Tcl Source Editor
add .tm extension for Tcl Source Editor [message #35328] |
Wed, 21 January 2009 23:03 |
Jan Nijtmans Messages: 3 Registered: July 2009 |
Junior Member |
|
|
First of all, I'm delighted to see all the progress you are
making in the dltk development. From the TCT (Tcl Core Team),
I don't see much participation yet in dltk, but maybe this
message is a start.
One thing I noticed in using Tcl from within eclipse, is that
the *.tm files are not syntax highlighted by default, although
since Tcl 8.5 this is the standard extension to be used for
"Tcl Modules". Therefore, my request is to add the .tm
extension in the same way as .tcl,.exp,.test ......
(below is a patch, but I did not succeed yet to build
and test everything, so I'm not sure it will really work)
I don't know if such a small change is worth to make a
bug report for it, apologies if this message is inappropriate.
Keep up the good work.
Regards,
Jan Nijtmans
member of TCT
===================================================
### Eclipse Workspace Patch 1.0
#P org.eclipse.dltk
Index: tcl/plugins/org.eclipse.dltk.tcl.ui/plugin.xml
============================================================ =======
RCS file:
/cvsroot/technology/org.eclipse.dltk/tcl/plugins/org.eclipse .dltk.tcl.ui/plugin.xml,v
retrieving revision 1.44
diff -u -r1.44 plugin.xml
--- tcl/plugins/org.eclipse.dltk.tcl.ui/plugin.xml 8 Dec 2008 09:14:07
-0000 1.44
+++ tcl/plugins/org.eclipse.dltk.tcl.ui/plugin.xml 21 Jan 2009 22:33:19
-0000
@@ -154,7 +154,7 @@
class="org.eclipse.dltk.tcl.internal.ui.editor.TclEditor"
contributorClass=" org.eclipse.dltk.internal.ui.editor.SourceModuleEditorAction Contributor "
default="true"
- extensions="tcl,exp,test,xotcl,itcl"
+ extensions="tcl,tm,exp,test,xotcl,itcl"
icon="$nl$/icons/obj16/tcl_obj.gif"
id="org.eclipse.dltk.tcl.ui.editor.TclEditor"
name="%TclEditor.name">
|
|
|
Re: add .tm extension for Tcl Source Editor [message #35363 is a reply to message #35328] |
Thu, 22 January 2009 07:48 |
Alex Panchenko Messages: 342 Registered: July 2009 |
Senior Member |
|
|
Hi Jan,
The .tm extension was added to the Tcl Source Content type since DLTK
1.0M3, so it should already recognize *.tm files as TCL.
Content Types is a newer (eclipse 3.0) way to configure the same thing.
You can view them at Preferences - General - Content Types.
I would like to check if you use DLTK 1.0 versions (btw, it contains a
lot of new features).
Regards,
Alex
Jan Nijtmans wrote:
>
> First of all, I'm delighted to see all the progress you are
> making in the dltk development. From the TCT (Tcl Core Team),
> I don't see much participation yet in dltk, but maybe this
> message is a start.
>
> One thing I noticed in using Tcl from within eclipse, is that
> the *.tm files are not syntax highlighted by default, although
> since Tcl 8.5 this is the standard extension to be used for
> "Tcl Modules". Therefore, my request is to add the .tm
> extension in the same way as .tcl,.exp,.test ......
> (below is a patch, but I did not succeed yet to build
> and test everything, so I'm not sure it will really work)
>
> I don't know if such a small change is worth to make a
> bug report for it, apologies if this message is inappropriate.
>
> Keep up the good work.
>
> Regards,
> Jan Nijtmans
> member of TCT
>
> ===================================================
> ### Eclipse Workspace Patch 1.0
> #P org.eclipse.dltk
> Index: tcl/plugins/org.eclipse.dltk.tcl.ui/plugin.xml
> ============================================================ =======
> RCS file:
> /cvsroot/technology/org.eclipse.dltk/tcl/plugins/org.eclipse .dltk.tcl.ui/plugin.xml,v
>
> retrieving revision 1.44
> diff -u -r1.44 plugin.xml
> --- tcl/plugins/org.eclipse.dltk.tcl.ui/plugin.xml 8 Dec 2008
> 09:14:07 -0000 1.44
> +++ tcl/plugins/org.eclipse.dltk.tcl.ui/plugin.xml 21 Jan 2009
> 22:33:19 -0000
> @@ -154,7 +154,7 @@
> class="org.eclipse.dltk.tcl.internal.ui.editor.TclEditor"
>
> contributorClass=" org.eclipse.dltk.internal.ui.editor.SourceModuleEditorAction Contributor "
>
> default="true"
> - extensions="tcl,exp,test,xotcl,itcl"
> + extensions="tcl,tm,exp,test,xotcl,itcl"
> icon="$nl$/icons/obj16/tcl_obj.gif"
> id="org.eclipse.dltk.tcl.ui.editor.TclEditor"
> name="%TclEditor.name">
>
>
|
|
|
Re: add .tm extension for Tcl Source Editor [message #35430 is a reply to message #35363] |
Fri, 23 January 2009 11:26 |
Jan Nijtmans Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Alex Panchenko wrote:
> I would like to check if you use DLTK 1.0 versions (btw, it contains a
> lot of new features).
Thanks! I still used 0.95, but now I upgraded to the latest 1.0
release, and indeed, *.tm files are now recognized. I will start
using this version in my project, and report what I find.
The first thing I noticed is that two commands give errors now:
namespace ensemble create
info frame
Those are new in Tcl 8.5. Looking at
org.eclipse.dltk.tcl.tcllib/definitions/builtin.xml
it looks like the machinery is in place to differentiate
between Tcl 8.5 and earlier. I found the Tcl Checker
"Version" option, and changed it to "5". But that didn't
help. Is this a bug, or am I missing something?
Regards,
Jan Nijtmans
P.S. Tcl/Tk 8.6 with Itcl 4.0 is about to be released
in about 2 months now, it's already in beta. I'm willing
to help to get the 8.6 changes in dltk as well.
|
|
|
Re: add .tm extension for Tcl Source Editor [message #35463 is a reply to message #35430] |
Fri, 23 January 2009 13:42 |
Alex Panchenko Messages: 342 Registered: July 2009 |
Senior Member |
|
|
The preference to specify Tcl interpreter version is not implemented
yet, so by default it goes with 8.4.
Tcl Checker is the external tool from ActiveState TDK, so it is not
related to the internal parser/validator.
Regards,
Alex
Jan Nijtmans wrote:
> Alex Panchenko wrote:
>> I would like to check if you use DLTK 1.0 versions (btw, it contains a
>> lot of new features).
>
> Thanks! I still used 0.95, but now I upgraded to the latest 1.0
> release, and indeed, *.tm files are now recognized. I will start
> using this version in my project, and report what I find.
>
> The first thing I noticed is that two commands give errors now:
> namespace ensemble create
> info frame
> Those are new in Tcl 8.5. Looking at
> org.eclipse.dltk.tcl.tcllib/definitions/builtin.xml
> it looks like the machinery is in place to differentiate
> between Tcl 8.5 and earlier. I found the Tcl Checker
> "Version" option, and changed it to "5". But that didn't
> help. Is this a bug, or am I missing something?
>
> Regards,
> Jan Nijtmans
>
> P.S. Tcl/Tk 8.6 with Itcl 4.0 is about to be released
> in about 2 months now, it's already in beta. I'm willing
> to help to get the 8.6 changes in dltk as well.
>
|
|
| |
Goto Forum:
Current Time: Thu Sep 26 03:25:55 GMT 2024
Powered by FUDForum. Page generated in 0.04801 seconds
|