为 Windows 下的 Tcl/Tk 开发创建功能齐全的环境
我现在正在学习 Tcl/Tk,但是当我运行 Windows 时,我想为这种语言创建一个功能齐全(专业)的开发环境,但我需要知道:
- 我需要安装哪些工具(首先) ?
- 支持Tcl/Tk开发的IDE有哪些?
- 最适合开发的文本编辑器是什么?
- 我在哪里可以找到它的一些库(如果存在)?
- 可以用它做一些网络应用程序吗?
- 它使用 CGI?
I'm now learning Tcl/Tk, but as I'm running Windows, I want to create a fully featured(professional) development environment for this language, but I need to know:
- Which tools I need to install(first of all)?
- What are the IDEs that support Tcl/Tk development?
- What is the best text editor to develop in?
- Where I can find some librarys for it(if exists)?
- It's possible to do some web applications with it?
- It uses CGI?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
首先安装 ActiveTCL。它是免费的,包含 TCL 和 TK 绑定。如果您有最喜欢的文本编辑器,您可以使用它。确保您有语法突出显示。如果您想要更高级的东西,我推荐 Komodo。它处于活动状态并且有免费版本。它在语义上理解 TCL,因此它比标准文本编辑器更智能。例如,它会在您编码时突出显示语法错误。
现在编写一些代码并传播 TCL 的爱!
Start off by installing ActiveTCL. It is free and includes TCL and TK bindings. If you have a favorite text editor you can use that. Make sure you have syntax highlighting. If you want something more advanced, I'd recommend Komodo. It is by active state and has a free version. It semantically understands TCL, so it is more intelligent than a standard text editor. For example it highlights syntax errors while you code.
Now write some code and spread the TCL love!
对于交互式 Tcl shell,请使用 TkCon
对于编辑器,我使用 Komodo 或 Vim
对于 Web 应用程序,有FrameWorks,服务器:TclHTTP, Aol 服务器, < a href="http://tcl.apache.org/" rel="nofollow noreferrer">Apache 模块,当然还有CGI
For an interactive Tcl shell, use TkCon
For an editor, I use Komodo or Vim
For web apps, there are FrameWorks, servers: TclHTTP, Aol Server, Apache modules, and of course CGI
对于文本编辑器,我建议尝试 jEdit;它具有 TCL 语法高亮功能。安装后,我还建议安装以下插件(可以通过内置插件管理器完成):
For a text editor I would recommend trying jEdit; it has TCL syntax highlighting. When installed I would also recommend installing the following plugins (which can be done via the built-in plugin manager):
正如 Byron 提到的,ActiveTCL 是在 Windows 上使用 TCL 的起点。至于文本编辑器,我个人喜欢 SciTE,但是任何可以进行语法突出显示的文本编辑器就可以了(代码折叠也有帮助)。
TCL wiki 有以下有关 IDE 的页面: http://wiki.tcl.tk/998
如果如果您需要一个提供特定功能的库,我会首先检查TCl wiki。 TCL 扩展没有中央存储库,但 wiki 似乎是 TCL 知识的中央存储库。
是的,您可以使用 TCL 进行基于网络的项目。您可以在此处找到有关 CGI 和 TCL 的一些信息。一些网络服务器(例如 AOLServer)具有内置的 TCL 解释器。
As Byron mentioned, ActiveTCL is the place to start when using TCL on Windows. As for a text editor, I personally like SciTE, but any text editor that will do syntax highlighting will do (code folding helps as well).
The TCL wiki has the following page regarding IDEs: http://wiki.tcl.tk/998
If you are in need of a library providing specific functionality, I would first check the TCl wiki. There is no central repository of TCL extensions, but the wiki seems to be the central repository of TCL knowledge.
Yes, you can use TCL for web-based projects. You can find a bit of info here regarding CGI and TCL. Some webservers (AOLServer for instance) have a built-in TCL interpreter.
其他人已经提到了 TkCon,但大多数人并没有充分利用 TkCon 的全部功能。它不仅仅是一个 REPL 循环(为此您可以只使用 tclsh 或 Wish)。我最喜欢的功能是 TkCon 的编辑命令。
基本上:
让您查看和编辑文件。
允许您查看和编辑变量的内容,甚至数组也
允许您查看和编辑过程的主体。事实上,这就是我通常在 TkCon 中编写重要过程的方式。
Others have already mentioned TkCon but most people don't utilise the full power of TkCon. It is much more than a REPL loop (for that you could have just used tclsh or wish). My favourite feature is TkCon's edit command.
Basically:
lets you view and edit files.
lets you view and edit the content of a variable, even arrays
lets you view and edit the body of a proc. In fact, this is how I usually write non-trivial procs in TkCon.
如果您要编写需要 Windows 特定功能的代码,您肯定会希望获得 TWAPI Tcl Windows API 库。
If you're going to write code that needs Windows-specific functionality, you will definitely want to get TWAPI the Tcl Windows API library.
关于 ActiveTcl 的提及 - ActiveState(ActiveTcl 的创建者)一直在开发一个扩展存储库。当然,有些扩展还没有出现在那里,但此时其存储库中有超过 3000 个实体,因此那里存在很多扩展。 ActiveTcl 附带一个名为“teacup”的程序,它提供了存储库的命令行界面,允许您安装特定的扩展(或者,如果您像我一样,允许您安装与您的平台相关的所有扩展)。
Tcler 的 wiki 有许多关于其他工具和扩展的参考。但是,您最喜欢的 Web 搜索引擎可能会找到尚未在 wiki 上记录或添加到 ActiveState 存储库中的实用程序、工具、扩展和应用程序。
With regards to the mentions of ActiveTcl - ActiveState (the creators of ActiveTcl) have been developing an extension repository. Certainly there are extensions which do not (yet) appear there, but there are over 3000 entities in their repository at this time, so many extensions are present there. ActiveTcl comes with a program called "teacup" which provides a command line interface to the repository, allowing you to install specific extensions (or, if you are like me, allowing you to install all the extensions relevant to your platform).
The Tcler's wiki has a number of references to additional tools and extensions. However, your favorite web search engines are likely to turn up utilities, tools, extensions, and applications not yet documented on the wiki or added to the ActiveState repository.
MyTcl 是一个相当不错的 IDE,包含 Tcl 环境、自动完成、语法突出显示、调试等。与 Visual Studio 具有相似的外观和感觉。主页是韩文的,但不难找到下载。
MyTcl is a fairly nice IDE with a Tcl environment included, autocomplete, syntax highlighting, debugging, etc. It has a similar look and feel to Visual Studio. The homepage is in Korean, but it's not too hard to find the download.