UE v18.00.0.1021 was the first version supporting smart templates. I restored this version from an archive to test smart templates feature on a *.html file containing HTML, JavaScript and CSS sections.
I used the standard configuration which means:
- At Advanced - Configuration - Editor Display - Syntax Highlighting there is the directory (and not a file) %APPDATA%\IDMComp\UltraEdit\wordfiles configured whereby %APPDATA% is here a reference to environment variable APPDATA containing path to user account related application data directory.
Deleting the string in edit field at top of this configuration dialog and closing the dialog with button OK sets this default wordfiles directory.
This directory contains the standard wordfiles css.uew, html.uew and javascript.uew and some other *.uew files each containing 1 syntax highlighting definition as installed with UE v18.00.
- At Advanced - Configuration - Directories there is the directory %APPDATA%\IDMComp\UltraEdit\templates configured.
This directory contains in subdirectory language the standard language template files css-tpl.xml, html-tpl.xml and javascript-tpl.xml and some other *-tpl.xml files as installed with UE v18.00.
I did not have any project loaded as I opened the *.html file in UltraEdit.
The caret was first blinking within an HTML section. The status bar displayed
HTML in fourth box as expected indicating this part is syntax highlighting with language
HTML as defined in
html.uew. The template list displayed
Global with no global templates as none defined by default,
Power User with no environment (layout) templates as none defined by default, and
HTML with the predefined language templates from
html-tpl.xml. And of course I could insert one of those templates by double clicking on it and also by typing template name using auto-suggest feature.
Next I moved caret into the JavaScript section. The status bar at bottom indicated now
JavaScript as language defined with that name in
javascript.uew was used for this section in file. And in template list
HTML disappeared and instead
JavaScript was displayed with the templates from
javascript-tpl.xml which of course could be inserted with any method for inserting a language template.
Last I moved caret into the CSS section. The status bar at bottom indicated now
CSS 1.0-2.1 as language defined with that name in
css.uew was used for this section in file. And in template list
JavaScript disappeared and instead
CSS 1.0-2.1 was displayed with the templates from
css-tpl.xml.
There is something wrong in your configuration if all that does not work. Check the configuration of the two directories. Check the *.uew files in the wordfiles directory.
Are your *.java and *.html files syntax highlighted at all with language as defined in appropriate wordfile?
Check the language template files. Is everything correct displayed in
Advanced - Display/Modify Templates which can be opened also via the context menu item
Add/Modify Template.
In case of you can't see something wrong, pack with ZIP or RAR the entire templates and wordfiles directories and add also a *.java and a *.html file to the archive. Upload this ZIP or RAR archive as attachment to your next post I will look into it if I can see something with UE v18.00.0.1021 which disables loading and displaying the language templates.