AUTOCAD中写lisp程序不可避免用到界面程序语言框架:DCL。但在notepad++中并没有DCL程序编写的高亮和语法自动补全,这让已经习惯在notepad++中写lisp代码的我感到十分不爽,于是按照notepad++中的自定义语言方法,自己定义了一个,作为备忘。步骤如下:
notepad++
1.安装notepad++,这是免费软件,没太多可说。

2.单击【视图】→【自定义语言对话框】如下图:
打开如下图所示【自定义语言格式对话框】,在自定义语言项目中加入“DCL”,扩展名也输入“DCL”:
填写完毕之后,单击【语言】,会出现DCL的语言选项,如下图:
在下面的四个tab中分别按照下面四张图形进行设置:
注意:关键字列表中的层次关系可以自己调整关键词,我个人比较喜欢现在这种,四类关键字如下:

第一分组:

boxed_columnboxed_radio_columnboxed_radio_rowboxed_row button column concatenation dialog edit_box image image_buttonlist_box paragraph popup_listradio_buttonradio_columnradio_row row slider spacer text text_part toggle acad_atteditacad_ddatteacad_dwgmodacad_filesacad_groupacad_iconacad_mtpropacad_newdwgacad_opendwgacad_planacad_plotacad_reinitacad_snapacad_tstyleacad_tstyle_symacad_txtedit

第二分组:

action action_tileadd_listcancel_buttonchildren_alignmentchildren_fixed_heightchildren_fixed_width
color_palette_0_9 color_palette_1_7 color_palette_1_9 color_palette_250_255 column concatenation:clusterddfcfdefault_buttondefault_dcl_settingdimx_tiledimy_tiledone_dialog edit12_box edit32_box end_imageend_listerrtile f0 f2 f0he fcf_ebox fcf_ebox1 fcf_ibut fcf_ibut1 files_bottomdffiles_topdffill_imageget_attrget_tilehelp_buttonicon_imageimage_blockinfo_buttoninitial_focusis_boldis_cancelis_defaultis_enabledis_tab_stopparagraph:clusterpassword_charLispEdload_dialogmledit mnemonic mode_tilemstylemultiple_selectnew_dialogok_onlyok_cancelok_cancel_errok_cancel_helpok_cancel_help_errtileok_cancel_help_infopstylerq_chromaset_tileslide_image spacer_0 spacer_1 start_dialogstart_imagestart_liststd_rq_colorswatchterm_dialog tabs tab_truncate text_25 unload_dialogvector_imageok_buttoncancel_buttoninfo_buttonok_cancel

第三分组:

allow_acceptaspect_ratio color value width label max_valuemin_value height fixed
_heightfixed_widthedit_width list key alignment edit_limitfixed_width_fontsmall_incrementbig_increment layout multi_select

第四分组:

centered left right false true vertical

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。