zoukankan      html  css  js  c++  java
  • BCB6代码格式化外挂

    C++ Source Code Indent Expert for BCB6 V1.1
    这是个在BCB6 IDE下的C++程式码缩排的Expert外挂工具程式,
    让你按个热键(Ctrl+])就能重整程式码。

    V1.1 新版改动:
    1.不再使用"IDEStream v.1.2",改用自己写的 EditorInterface,
      因为用"IDEStream v.1.2"发现在多次 Undo,Redo后,最后一行会出现乱码。
    2.这版会把Unit的 *.cpp 和 *.h 都进行缩排,算是解决这个Bug。
    3.在 indent 完后会比对新旧档案是否有改变,若有改变才会写回 Editor。

    /***************** 旧版 V1.0 ******************/
    主要是由下面网址裡的"C++ Formatting Expert"修改和Debug而来的,
    http://www.frasersoft.net/program/

    另外有用到"IDEStrea v.1.2"
    http://www.torry.net/ide.htm#2911

    还有最新版的 GNU Indent 2.2.8a
    http://home.hccnet.nl/d.ingamells/beautify.html

    无法解决的Bug:
    这应该是Borland的OpenToolsApi的Bug,
    当使用ToolServices.GetCurrentFile来取得现在正在编辑的档案名称时,
    若正在编辑一个C++ Unit的HeaderFile的话,还是只会传回*.cpp,不会传回*.h,
    所以就无法对Unit的HeaderFile做处理了…
    /*****************************************/

    安装:
    解开 bcbindent*.zip 到你喜欢的目录下,
    开启 bcbindent.bpk,Compile再Install,会有个Dialog告诉你
    indent.exe 和 .indent.pro 要copy到那个目录下( $(BCB)\Projects\Bpl ),
    copy过去后,再重新Compile一次就完成了。
    在Edit的选单下会出现个"C++ Indent",按一下就可缩排目前Editor裡的Code。
    .indent.pro 裡是我自己习惯的选项,详细内容请参考indent.html修改之。

    解除安装:
    到BCB IDE->Component->Install Packages...裡,
    找到 "BCB C++ Source Code Indent Expert" 把它remove掉,
    再到 $(BCB)\Projects\Bpl 和 $(BCB)\Projects\Lib
    将 bcbindent.* 和 indent.* 删除。

    2003/11/11 by way99

    /Files/meetrice/40369_bcbindent11.zip

  • 相关阅读:
    linux poll 和 select
    linux测试 scullpipe 驱动
    linux进程唤醒的细节
    linux进程互斥等待
    linux 手动睡眠
    linux一个进程如何睡眠
    [POJ 2431]Expedition
    【MongoDB数据库】MongoDB 命令入门初探
    高速排序为什么快?
    [050] 微信公众平台开发入门视频教程已公布
  • 原文地址:https://www.cnblogs.com/meetrice/p/1584244.html
Copyright © 2011-2022 走看看