




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、AUTOCAD中写lisp程序不可避免用到界面程序语言框架:DCL。但在notepad+中并没有DCL程序编写的高亮和语法自动补全,这让已经习惯在notepad+中写lisp代码的我感到十分不爽,于是按照notepad+中的自定义语言方法,自己定义了一个,作为备忘。步骤如下:1.安装notepad+,这是免费软件,没太多可说。2.单击【视图】【自定义语言对话框】如下图:打开如下图所示【自定义语言格式对话框】,在自定义语言项目中加入“DCL”,扩展名也输入“DCL”:填写完毕之后,单击【语言】,会出现DCL的语言选项,如下图:在下面的四个tab中分别按照下面四张图形进行设置:注意:关键字列表中的
2、层次关系可以自己调整关键词,我个人比较喜欢现在这种,四类关键字如下:第一分组:boxed_column boxed_radio_column boxed_radio_row boxed_row button column concatenation dialog edit_box image image_button list_box paragraph popup_list radio_button radio_column radio_row row slider spacer text text_part toggle acad_attedit acad_ddatte acad_dwgm
3、od acad_files acad_group acad_icon acad_mtprop acad_newdwg acad_opendwg acad_plan acad_plot acad_reinit acad_snap acad_tstyle acad_tstyle_sym acad_txtedit第二分组:action action_tile add_list cancel_buttonchildren_alignmentchildren_fixed_height children_fixed_width color_palette_0_9 color_palette_1_7 col
4、or_palette_1_9 color_palette_250_255 column concatenation:cluster ddfcf default_button default_dcl_setting dimx_tiledimy_tiledone_dialog edit12_box edit32_box end_image end_listerrtile f0 f2 f0he fcf_ebox fcf_ebox1 fcf_ibut fcf_ibut1 files_bottomdffiles_topdf fill_imageget_attrget_tile help_button i
5、con_imageimage_block info_button initial_focus is_bold is_cancel is_default is_enabled is_tab_stop paragraph:cluster password_char LispEd load_dialog mledit mnemonic mode_tile mstyle multiple_select new_dialog ok_only ok_cancel ok_cancel_err ok_cancel_help ok_cancel_help_errtile ok_cancel_help_info
6、pstylerq_chroma set_tileslide_image spacer_0 spacer_1 start_dialogstart_image start_list std_rq_color swatchterm_dialog tabs tab_truncate text_25 unload_dialog vector_image ok_button cancel_button info_button ok_cancel第三分组:allow_accept aspect_ratio color value width label max_value min_value height
7、fixed_height fixed_width edit_width list key alignment edit_limit fixed_width_font small_increment big_increment layout multi_select第四分组:centered left right false true vertical改完之后点右上角叉退出。3.进入路径:C:Program FilesNotepad+pluginsAPIs ,在其中新建一个名为“DCL.xml”的文件,把如下等号线内(不含等号线)粗体文字复制粘贴,之后保存,显然,这就是语法补全的设定项目,如果你
8、还感觉缺哪个,自己往里按格式填,必须严格按字母排列顺序填,否则不能保证正确的语法高亮顺序,切记切记,最后保存退出即可。老衲一个关键字一个关键字敲的,善哉善哉.=<?xml version="1.0" encoding="Windows-1252" ?><NotepadPlus><AutoComplete><KeyWord name="acad_attedit" /><KeyWord name="acad_ddatte" /><KeyWord name
9、="acad_dwgmod" /><KeyWord name="acad_files" /><KeyWord name="acad_group" /><KeyWord name="acad_icon" /><KeyWord name="acad_mtprop" /><KeyWord name="acad_newdwg" /><KeyWord name="acad_opendwg" /&
10、gt;<KeyWord name="acad_plan" /><KeyWord name="acad_plot" /><KeyWord name="acad_reinit" /><KeyWord name="acad_snap" /><KeyWord name="acad_tstyle" /><KeyWord name="acad_tstyle_sym" /><KeyWord name="
11、acad_txtedit" /><KeyWord name="action" /><KeyWord name="action_tile" /><KeyWord name="add_list" /><KeyWord name="alignment" /><KeyWord name="allow_accept" /><KeyWord name="aspect_ratio" /><KeyW
12、ord name="big_increment" /><KeyWord name="boxed_column" /><KeyWord name="boxed_radio_column" /><KeyWord name="boxed_radio_row" /><KeyWord name="boxed_row" /><KeyWord name="button" /><KeyWord name="ca
13、ncel_button" /><KeyWord name="centered" /><KeyWord name="children_alignment" /><KeyWord name="children_fixed_height" /><KeyWord name="children_fixed_width" /><KeyWord name="color" /><KeyWord name="color_p
14、alette_0_9" /><KeyWord name="color_palette_1_7" /><KeyWord name="color_palette_1_9" /><KeyWord name="color_palette_250_255" /><KeyWord name="column" /><KeyWord name="concatenation" /><KeyWord name="concat
15、enation:cluster" /><KeyWord name="ddfcf" /><KeyWord name="default_button" /><KeyWord name="default_dcl_settings" /><KeyWord name="dialog" /><KeyWord name="dimx_tile" /><KeyWord name="dimy_tile" />
16、<KeyWord name="done_dialog" /><KeyWord name="edit_box" /><KeyWord name="edit_limit" /><KeyWord name="edit_width" /><KeyWord name="edit12_box" /><KeyWord name="edit32_box" /><KeyWord name="end_imag
17、e" /><KeyWord name="end_list" /><KeyWord name="errtile" /><KeyWord name="f0" /><KeyWord name="f2" /><KeyWord name="f0he" /><KeyWord name="false" /><KeyWord name="fcf_ebox" /><Ke
18、yWord name="fcf_ebox1" /><KeyWord name="fcf_ibut" /><KeyWord name="fcf_ibut1" /><KeyWord name="files_bottomdf" /><KeyWord name="files_topdf" /><KeyWord name="fill_image" /><KeyWord name="fixed_height
19、" /><KeyWord name="fixed_width" /><KeyWord name="fixed_width_font" /><KeyWord name="get_attr" /><KeyWord name="get_tile" /><KeyWord name="height" /><KeyWord name="help_button" /><KeyWord name=&
20、quot;icon_image" /><KeyWord name="image" /><KeyWord name="image_block" /><KeyWord name="image_button" /><KeyWord name="info_button" /><KeyWord name="initial_focus" /><KeyWord name="is_bold" /><
21、KeyWord name="is_cancel" /><KeyWord name="is_default" /><KeyWord name="is_enabled*" /><KeyWord name="is_tab_stop" /><KeyWord name="key" /><KeyWord name="label" /><KeyWord name="layout" /><
22、KeyWord name="left" /><KeyWord name="LispEd" /><KeyWord name="list" /><KeyWord name="list_box" /><KeyWord name="load_dialog" /><KeyWord name="max_value" /><KeyWord name="min_value" /><KeyW
23、ord name="mledit" /><KeyWord name="mnemonic" /><KeyWord name="mode_tile" /><KeyWord name="mstyle" /><KeyWord name="multiple_select" /><KeyWord name="new_dialog" /><KeyWord name="ok_button" />
24、<KeyWord name="ok_cancel" /><KeyWord name="ok_cancel_err" /><KeyWord name="ok_cancel_help" /><KeyWord name="ok_cancel_help_errtile" /><KeyWord name="ok_cancel_help_info" /><KeyWord name="ok_only" /><Ke
25、yWord name="paragraph" /><KeyWord name="paragraph:cluster" /><KeyWord name="password_char" /><KeyWord name="popup_list" /><KeyWord name="pstyle" /><KeyWord name="row" /><KeyWord name="radio_button&qu
26、ot; /><KeyWord name="radio_column" /><KeyWord name="radio_row" /><KeyWord name="right" /><KeyWord name="rq_chroma" /><KeyWord name="set_tile" /><KeyWord name="slider" /><KeyWord name="slide_ima
27、ge" /><KeyWord name="small_increment" /><KeyWord name="spacer" /><KeyWord name="spacer_0" /><KeyWord name="spacer_1" /><KeyWord name="start_dialog" /><KeyWord name="start_image" /><KeyWord name
28、="start_list" /><KeyWord name="std_rq_color" /><KeyWord name="swatch" /><KeyWord name="tab_truncate" /><KeyWord name="tabs" /><KeyWord name="term_dialog" /><KeyWord name="text" /><KeyWord
29、name="text_25" /><KeyWord name="text_part" /><KeyWord name="toggle" /><KeyWord name="true" /><KeyWord name="unload_dialog" /><KeyWord name="value" /><KeyWord name="vector_image" /><KeyWord
30、 name="width" /></AutoComplete></NotepadPlus>= 4.语法高亮的设置文件被notepad+放在了 “C:Documents and SettingsAdministratorApplication DataNotepad+”路径下的langs.xml文件里,按语言字母的顺序,在所谓的“D”语言后面,增加一段高亮设定代码:=<Language name="DCL" ext="DCL VLX FAS" commentLine="/"
31、; commentStart="/*" commentEnd="*/"><Keywords name="instre1">boxed_column boxed_radio_column boxed_radio_row boxed_row button column concatenation dialog edit_box image image_button list_box paragraph popup_list radio_button radio_column radio_row row slider sp
32、acer text text_part toggle</Keywords><Keywords name="instre2">acad_attedit acad_ddatte acad_dwgmod acad_files acad_group acad_icon acad_mtprop acad_newdwg acad_opendwg acad_plan acad_plot acad_reinit acad_snap acad_tstyle acad_tstyle_sym acad_txtedit action action_tile add_list
33、 alignment allow_accept aspect_ratio big_increment cancel_button children_alignment children_fixed_height children_fixed_width color color_palette_0_9 color_palette_1_7 color_palette_1_9 color_palette_250_255 column concatenation:cluster ddfcf default_button default_dcl_setting dimx_tile dimy_tile done_dialog edit_limit edit12_box edit32_box end_image end_list errtile f0 f2 f0h
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 深入浅出CPMM试题及答案解析
- 2024消防设施知识问答试题及答案
- 2024年证券从业资格考试培训试题及答案
- 2024年图书馆反馈与评价体系试题及答案
- 2025年助悬剂合作协议书
- (高清版)DB12∕T 634-2016 天津市社会组织公益创投规程
- 2025年民事赔偿协议书的模板
- 离婚协议书详细版(2025年版)
- 消防安全执行与监督试题及答案
- 2025年度美发店形象代言人代言权股份转让协议
- 消防水池的设计规范
- 《旅游政策与法规》考试复习题库及答案
- 部编版小学六年级语文下册全册教案(详案)
- 公路水运工程质量监督管理规定解读课件
- 项目后评价报告编制大纲(2022版)
- 工程质量目标质量管理体系及技术组织措施
- 风景园林管理与法规PPT课件全书课件完整版ppt全套教学教程最全电子教案电子讲义(最新)
- 部编版小学一年级下册写字表田字格版字帖
- 中国风古人读书教学课件PPT模板
- 2022年垃圾房管理规定
- 标准田字格模板A4纸word
评论
0/150
提交评论