帮助将最新的 Delphi Web Script (DWS) 与 SynEdit 集成
我决定齐心协力,将出色的 DWScript(Delph Web Script DWS) 集成到使用 SynEdit 的简单 IDE。 DWScript 目前正在积极开发,与其他 Pascal Script 库相比具有许多优势,但它不包含编辑器或任何超越简单备忘录控件的 IDE 示例都可以证明执行能力。它确实包含许多用于编辑器/调试器集成的挂钩,事实上,当 DWS 不久前重新唤醒时,版本确实包含 SynEdit / DWS2(当时)集成的示例。可以在 \dws2rel\ 中的文件 dws2src20-20030907.zip 中找到示例dwstools\idedialog\source,其中有一个带有编辑器窗口、调用堆栈、断点窗口等的“迷你 IDE”。非常好。几个月前,我确实使用旧的 SynEdit 和包含在该文件中的 DWS2 实现了此功能。
因此,我现在尝试使用最新的 SynEdit(从 SVN 下载)和最新的 DWScript(也从 SVN 下载)来实现此(或类似)IDE。这两个库都可以很好地安装到 XE 中,并且它们的演示也可以正常运行。然后我尝试从旧的“\dws2rel\dwstools\idedialog\source”中获取 ide 示例并更新代码,但发生了很多变化。令人沮丧的是,变化并没有太大,以至于我很快就放弃了——我尝试在旧源代码中搜索各种“旧”类型定义,并将它们与“新”定义相匹配。最后,在陷入代码几个小时之后,我断定肯定有人在某个地方沿着这条路线走下去了?
有人有使用最新 DWScript 代码的 DWScript - SynEdit 集成示例吗?我对可以学习/构建的简单东西感到非常满意。 谢谢
I decided to have a concerted effort to get the excellent DWScript (Delph Web Script DWS) integrated into a simple IDE using SynEdit. DWScript is currently being agressively developed and has a number of advantages over other Pascal Script libraries, however it does not contain an editor or any IDE example beyond a simple memo control to prove execution capability. It does contain a number of hooks for editor / debugger integration and in fact when DWS was reawakened a while ago, releases did contain an example of a SynEdit / DWS2 (as it was then) integration. An example can be found in the file dws2src20-20030907.zip in the \dws2rel\dwstools\idedialog\source where there is a 'mini-IDE' with editor window, call stack, breakpoint window etc. Really nice. I did get this working some months ago using an old SynEdit and the DWS2 that was included in this file.
So, I have now tried achieve this (or a similar) ide using the latest SynEdit (downloaded from SVN) and the latest DWScript (also from the SVN). Both libraries are installed fine into XE and their demos run fine. I then tried taking the ide example from the old "\dws2rel\dwstools\idedialog\source" and updating the code but much has changed. Frustratingly, not so much has changed that I gave up quickly - I tried searching for the various 'old' type definitions in old source and matching them up with 'new' definitions. Finally though, after several hours mired in code I decided that someone, somewhere must surely have been down this route?
Has anyone got an example of a DWScript - SynEdit integration using recent DWScript code please? I'm very happy with something simple that I can learn / build upon.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SynEdit 组件几乎没有得到维护,甚至一些项目如 Inno Setup 已更改为 < a href="http://www.scintilla.org/" rel="nofollow">Scintilla, 英诺安装程序没有使用DWS,但代码可以作为新IDE的基础
SynEdit component has received little maintenance, and even some projects as Inno Setup have changed to Scintilla, Inno Setup is not using DWS but the code can serve you as a basis for new IDE
Dws 在演示上有一个编辑器,带有调试器和远程调试器,只需下载所有版本的 dws one
Dws have a editor on the demos with debuger and remote debuger just download all versions of dws one