有这样的插件可以将Dcl格式化为Lisp吗?
这样地:
格式化之前
DCL文件
- roughness
- :dialog{ label="Roughness ";
- spacer;
- :row{
- :column{
- :image_button{ key = "RM"; aspect_ratio = 1; width = 8; fixed_width = true; color = -2; allow_accept = true; }
- :image_button{ key = "UN"; aspect_ratio = 1; width = 8; fixed_width = true; color = -2; allow_accept = true; }
- :image_button{ key = "BS"; aspect_ratio = 1; width = 8; fixed_width = true; color = -2; allow_accept = true; }
- }
- :list_box{ key="RV"; value=8; width=16; height=14; allow_accept=true; }
- }
- :row{
- :errtile{ width= 14; }
- :edit_box{ label = "Scale:"; key = "SC"; edit_width = 3; }
- }
- ok_cancel;
- }
格式化后
Lisp文件
- strl '("roughness:dialog{ "
- "label="Roughness "; "
- "spacer; "
- ":row{ "
- " :column{ "
- " :image_button{ key = "RM";"
- " aspect_ratio = 1; "
- " width = 8; "
- " fixed_width = true; "
- " color = -2; "
- " allow_accept = true; "
- " } "
- " :image_button{ "
- " key = "UN"; "
- " aspect_ratio = 1; "
- " width = 8; "
- " fixed_width = true; "
- " color = -2; "
- " allow_accept = true; "
- " } "
- " :image_button{ key = "BS";"
- " aspect_ratio = 1; "
- " width = 8; "
- " fixed_width = true; "
- " color = -2; "
- " allow_accept = true; "
- " } "
- " } "
- " :list_box{ "
- " key="RV"; "
- " value=8; "
- " width=16; "
- " height=14; "
- " allow_accept=true; "
- " } "
- " } "
- " :row{ "
- " :errtile{ "
- " width= 14; "
- " } "
- " :edit_box{ "
- " label = "Scale:"; "
- " key = "SC"; "
- " edit_width = 3; "
- " } "
- " } "
- " ok_cancel; "
- "} "
- )
- ) ;_DCL
|