Code Cleaner and typographic html...

User 2034184 Photo


Registered User
4 posts

(1) I need to use typographic characters in certain html documents.

However, Code Cleaner removes both the "named entities" and the "numbered entities" which I have included in my document for this purpose (which entities, themselves, display the desired character in the browser) and replaces them with what appear, visually, as "correct" characters in the editor; however, these display radically incorrect characters in the browser.

For example, Code Cleaner replaces both “ and “ (left double quote mark) with undesired characters.

With the Courier font active in HTML Editor, here's an explicit example: &mdash; is replaced with (i.e., in Windows Character Map: U+2014 [generated from keyboard by: <alt> 0151], which ruins the (desired character) display when rendered in the browser.

Hopefully, I'm just missing something in how I should have my settings. :)

(2) When using HTML Editor's Split-Screen Preview function, I note that I can click in the Preview and this will make the editing window insertion point jump to (approximately) that location in the editor. This is very convenient.

However, is there a way to do the inverse of this, namely, within the editing window, to make the preview window jump to the viewable "display location" that roughly corresponds to the insertion point within the editor's own window?

Perhaps I'm just dense, :rolleyes: but if I don't ask, I can't be helped. :rolleyes:

Regards,

Jim
User 38401 Photo


Senior Advisor
10,951 posts

Hiya Jim,

For the code cleaner, which is pretty touchy at this time and isn't really the optimal cleaner right now (needs updating yet), check the settings and see if you can alter them to not edit them. Not sure what settings you would change, but when you open code cleaner it has a bunch of options, there is probably something there to allow you to skip those characters and not clean them.

The split screen window works good both ways, but be sure you have the link part turned on in order to see it correctly and it may need to be turned off to do the connection from code to element,. Try both ways since I don't know if yours is on or off. At the bottom of the window there is a little link icon around the middle of the area at the bottom (middle being horizontally). Click it and see if that fixes the issue with following your clicks to the code etc.

And no worries there are no stupid questions (well ok maybe I've seen a few but...) :P
User 2034184 Photo


Registered User
4 posts

Hello Jo Ann,

Thanks for your help.

>check the settings and see if you can alter them to not edit them

The only setting I could find that was even close was to to convert Named entities to Numeric entities, which, incidentally, doesn't work either.

Instead, Code Cleaner, in the Editor, removes all special-character entities (whether Named or Numeric)--ones necessary for HTML--with corresponding "word processor"-type characters, which of course ruins the HTML (see my example in my first post re. the em dash character). :(

Initially, the split screen "code-following" feature worked for me from preview to editor, but not from editor to preview. Now (I don't know what has changed), but this much-needed feature doesn't work for me in either direction.

I have both code-following features checked in Preferences | General. And, in the task bar, I have tried setting, both to off and to on, "Toggle following links in Preview (when Preview element selection is on)." In neither case can I "follow" any code, whether from code to preview or from preview to code.

All that happens in either mode when I double-click (nothing happens upon single-click) is that the current word is selected. :(
User 38401 Photo


Senior Advisor
10,951 posts

I'll have to check more on the code following thing as I recall that I had issues with that a while back and there was something I had to do to make it work, but I don't recall what it was. I will let you know if I remember or find posts on it.

The reason the em dash (and most likely most of the characters it's deleting on you) doesn't work is because it's not an HTML character it's a word processor character and not standard acceptable HTML Code. Check the tab on the left called Characters and find the character you need in that list and when you double click it it will be placed into the code wherever you have your cursor. Those character codes are the accepted HTML codes for them.
User 2034184 Photo


Registered User
4 posts

It's the other way around. :) The editor is replacing my valid html with word processor characters:

"Instead, Code Cleaner, in the Editor, removes all special-character entities (whether Named or Numeric)--ones necessary for HTML--with corresponding "word processor"-type characters, which of course ruins the HTML (see my example in my first post re. the em dash character). :( "
User 38401 Photo


Senior Advisor
10,951 posts

Oh! My bad, I read that backwards lol. I would suggest then that you put in a support ticket to get assistance as it may be a glitch in the program, or it may be something can be altered that they will know about.

You can open a support ticket by doing the following:

Go to the top right of the website here
Click account then Your Support Room
Start support topic and ask the same question there.

Good luck and let us know what they have to say... other than the part that we already know it isn't the most efficient tool in the Editor at the moment. I am pretty sure they were talking about revamping that part at some point, but it hasn't been done yet. Check with them though and see what's going on.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.