读书人

增添/修改Eclipse中HTML、JSP等模板

发布时间: 2012-07-03 13:37:43 作者: rapoo

添加/修改Eclipse中HTML、JSP等模板

先找到myeclipse模板配置文件

%myeclipse-install%\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_5.9.100\templates.xml

以下是该文件的内容:?


2、如果要添加模板,将
?<!--Sundy JSP templates -->
?<template
??context="com.genuitec.eclipse.wizards.jsp"
??script="templates/jsp/Jsp-Manager.vtl"
??name="JSP Manager template"/>
??<template
??context="com.genuitec.eclipse.wizards.jsp"
??script="templates/jsp/Jsp-View.vtl"
??name="JSP View template"/>
??<template
??context="com.genuitec.eclipse.wizards.jsp"
??script="templates/jsp/Jsp-Input.vtl"
??name="JSP Input template"/>
加入到templates.xml中,

把相应的模板拷到那个目录中去,

重新启动myeclipse,再新建相应的页面时就会看到我们自己添加的模板了。

3、如果是修改模板的话,找到相应的模板文件修改就行了。

读书人网 >CSS

热点推荐