Eclipse Template Editor plugin
From Chunk Java Template Engine
(Difference between revisions)
Tom McClure (Talk | contribs) (Created page with "Installing the plugin: # Download the plugin jar from google code. # Find your Eclipse installation's "dropins" folder and copy the plugin jar into that folder. #* On OSX, this ...") |
Tom McClure (Talk | contribs) |
||
Line 1: | Line 1: | ||
Installing the plugin: | Installing the plugin: | ||
- | # Download the plugin jar from google code. | + | # Download the plugin jar from [http://code.google.com/p/chunk-templates/downloads/list google code]. |
# Find your Eclipse installation's "dropins" folder and copy the plugin jar into that folder. | # Find your Eclipse installation's "dropins" folder and copy the plugin jar into that folder. | ||
#* On OSX, this is /Applications/eclipse/dropins/ | #* On OSX, this is /Applications/eclipse/dropins/ | ||
Line 13: | Line 13: | ||
# Repeat step 5 for *.cxml (and whatever other extensions you wish to use for your templates). | # Repeat step 5 for *.cxml (and whatever other extensions you wish to use for your templates). | ||
# (Optional) Add "HTML Chunk Template Editor" to the list of available editors for *.html files. I make it the default but of course this is up to you. | # (Optional) Add "HTML Chunk Template Editor" to the list of available editors for *.html files. I make it the default but of course this is up to you. | ||
+ | |||
+ | |||
+ | |||
+ | Hooray! Syntax highlighting! Outline view! | ||
+ | |||
+ | Bonus: Template references are hyperlinked! Cmd-click any template reference to jump to that snippet's definition. | ||
+ | |||
+ | From java code, right-click a template name anywhere in your code and select "Open Snippet" to jump to the definition. |
Revision as of 19:32, 27 May 2011
Installing the plugin:
- Download the plugin jar from google code.
- Find your Eclipse installation's "dropins" folder and copy the plugin jar into that folder.
- On OSX, this is /Applications/eclipse/dropins/
- Restart Eclipse.
- In Eclipse Preferences, find settings panel for File Associations. Should be in
- General -> Editors -> File Associations
- Click the Add... button and add *.chtml
- Select *.chtml and click the other "Add..." button down by the "Associated Editors" list below.
- From the list of "Internal Editors" (make sure "External Programs" is not checked), scroll down and select
- "HTML Chunk Template Editor"
- Repeat step 5 for *.cxml (and whatever other extensions you wish to use for your templates).
- (Optional) Add "HTML Chunk Template Editor" to the list of available editors for *.html files. I make it the default but of course this is up to you.
Hooray! Syntax highlighting! Outline view!
Bonus: Template references are hyperlinked! Cmd-click any template reference to jump to that snippet's definition.
From java code, right-click a template name anywhere in your code and select "Open Snippet" to jump to the definition.