Tapatalk

Template with HTML entity " inserts " instead of the entity (fixed with 2025.0.0.32)

Template with HTML entity " inserts " instead of the entity (fixed with 2025.0.0.32)

3

PostMay 22, 2025#1

I'm editing HTML text and want to enter " in the form of ". So that I don't have to write it every time, I created a text block. When I paste it, it doesn't insert " but rather " which leads to errors in the output. What do I have to do to actually insert "?

Thanks for any help.

6,823625
Grand MasterGrand Master
6,823625

PostMay 23, 2025#2

We cannot help with more information.
  1. Which version of UltraEdit is used by you?
    Open the About dialog window, select the version information and copy and paste the version information with Ctrl+C and Ctrl+V.
  2. How do you created the text block?
    Is there a smart template (UE ≥ v18.00) or a template (UE < v18.00), a tag, an auto-completion entry, a custom HTML user tool, or a macro used for the text block?
  3. How do you insert the text block?
I use a macro for inserting &quot; into a file with file extension .html or .htm with following macro code:

Code: Select all

IfExtIs "html"
"&quot;"
Else
IfExtIs "htm"
"&quot;"
EndIf
EndIf
The macro has the name Insert &quot; and the hotkey assignment Ctrl + Shift + Q for fast execution by key. This macro is stored together with several other macros in a macro file which is configured to be automatically loaded on startup of UltraEdit.

Note: There is installed with UltraEdit a tag list file which contains the tag list group HTML - Special Characters with lots of characters inserted with their corresponding HTML entity on double clicking on one of the special characters in that tag list group. Open the Tag List view and select the group HTML - Special Characters. A double click on " in the list inserts &quot; into the active file at current position of the caret.

3

PostMay 23, 2025#3

UltraEdit
2024.3.0.15 64-bit
Support has already replied to me that it is a bug. If I enter a new text block in the text block list,  titled e.g. "Quote" and then use the string &quote; as  text block, it will automatically be converted into quotation marks and quotation marks will also be inserted.
This still worked in my old UE version.
I'll probably have to make do with the macro too. Thanks for the tip. Of course I'll have to add "php".
I couldn't find the tag list. I use the German version of UE and I didn't see the entry there.

6,823625
Grand MasterGrand Master
6,823625

PostMay 23, 2025#4

The macro can be coded also as:

Code: Select all

IfExtIs "html"
"&quot;"
ExitMacro
EndIf
IfExtIs "htm"
"&quot;"
ExitMacro
EndIf
IfExtIs "php"
"&quot;"
EndIf
Strg+F8 toggles by default the visibility of the Tag-Liste view.

In Menüband-Modus click on ribbon tab Layout on the checkbox item Tag-Liste for opening the Tag-Liste view.

In Modus Symbolleiste/Menü with Moderne Menüs click in menu Layout on the menu item Tag-Liste.

In Modus Symbolleiste/Menü with Traditionelle Menüs click in menu Ansicht in submenu Ansichten/Listen in submenu Listen on the menu item Tag-Liste.

Select at top of this view the group HTML - Special Characters.

Right click into this view and click on the context menu item Tags anpassen if you want to customize the tag groups or just some tags stored in the tag list file. There can be even used a completely different tag list file instead of the default once containing just the tag list groups and tags needed by you for your daily work. The tag list file to use by UltraEdit can be also configured in the dialog window Tag-Liste anpassen. Hint: This window is by default quite small, increase width and perhaps also the height. The window dimensions and its position is saved and restored for next opening of this window. The dimensions of the view Tag-Liste and its position is also saved and restore. A docked position as by default with auto-hide enabled could be best for quick using that view and the displayed tags.

3

PostMay 23, 2025#5

Thanks a lot.

6,823625
Grand MasterGrand Master
6,823625

PostJul 25, 2025#6

The issue with a template with the text &quot; which inserted " on inserting the template instead of the HTML entity is fixed with UE/UES v2025.0.0.32 after the creation/edit of a template with an HTML entity.

There can be defined also a template with the string &quot;[$replace$]^&quot; which inserts two &quot; around a selected text if there is a text selected at all. The caret is placed left to second &quot; after inserting the template as defined in the template with ^ which is useful on inserting the two straight double quotation mark entities without having a text selected to immediately enter next the text between the two quotes.