Jedi Code Format是一款开源的Delphi代码格式化工具,主要用于Delphi Object Pascal和Delphi.NET源代码格式的格式化,具有缩进、调整间距和代码错误高亮显示等功能,该版本是图形化的界面,在IDE下使用的话需要安装JCL/JVCL。
安装方法:
下载可执行程序,并解压缩到适当的目录。
将文件在Windows目录jcf2settings.cfg。
运行GUI jcfnotepad.exe试验文件。
运行GUI程序jcfgui.exe格式文件从桂-这是很好的当你有一个目录或Delphi文件目录树,你想要的格式。
如果你正在制作一个批处理文件或命令行程序运行你是受虐狂jcf.exe。
使用IDE插件格式的文件或项目,而你在Delphi开发环境下工作。
Delphi IDE撑着可以安装Delphi 7如下。所有的软件包可以安装选择菜单项组成|安装包,点击“添加”按钮。
安装JCL设计包到Delphi。
安装设计时控件到Delphi JVCL。
安装jcfide7.bpl
阅读使用JCF IDE撑着的指示。
安装源如下:
得到的JCL代码库,安装设计时包。
下载、编译和安装JVCL组件。
为测试工具,你还需要dunit。
下载源码,解压到一个合适的目录。
启动Delphi。
在JediCodeFormat.bpg打开代码格式化程序组
编译运行。保重,玩得开心。
编译可能出错的事情:
项目testproject.dpr是默认打开的,而这个项目是充分的警告。记住这只是测试代码格式化程序的工作,而不是跑。Delphi在一组自动打开的最后一个项目,我希望Borland会改变这。测试项目是最重要的项目。使用菜单项视图|项目经理和开放的第一个项目,jedicodeformat.dpr相反。
包含以下程序:
Programs
All of these program contain the same code formatting engine with different interfaces.
jcf.exe
A command-line program suitable for batch files and old-school unix programmers. The functionality is much like JcfGui.exe, i.e. it can work on a file, a directory or a directy tree, and can format files in place, or to an output file.
jcfGui.exe
A GUI interface to formatting files and directories. Best used when you want to interactively format a file, directory or directory tree.
JcfIde7.bpl
The JCF Delphi IDE plug-in compiled for Delphi 7. Requires JCL and JCVL. This is the easiest way to use the formatter. Just press a button and watch your code change. the other advantage is that if you don't like the results, by clicking "undo" twice immediately you can undo the format.
JcfIde9.bpl
The JCF Delphi IDE plug-in compiled for Delphi 2005. Otherwise as above.
If anyone compiles the IDE pluggin for other versions of Delphi I will gladly upload the binaries to Sourceforge.
JcfNotepad.exe
is a gui for working with source and layout. Input source is loaded/typed/pasted into the input text area, and the formatter output is generated to the output text area, and can then be saved. Or not.
软件评论 您的评论需要经过审核才能显示
网友评论