cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Style Non-breaking spaceband in editor

ptc-3063012
1-Visitor

Style Non-breaking spaceband in editor

Hello,


The usage of non-breaking space is more in our documents and our editor want to see this differently from a regular spaceband. Preferences are set to show spaces and tabs but it does not display non-breaking spacebands. Non breaking spacebands are inserted as .


Is there a way that I can style this differently and show it in the editor view?


Thanks


Karthik

4 REPLIES 4

Set charentdisplay=off should display all character entities as tags instead of glyphs. This would be true for all your character entities, not just your non-breaking spaces.

Hi Ed,


We are using unicode characters to render any special characters and are not using character entities. I had set the charentdisplay=off but it still does not display it differently.



Karthik

There was no way to configure Editor (as late as 5.3 m110) as far as I could
see to show the non-breaking space in a way that satisfied my authors. By
configuring View, you can turn on spaces which then show as tiny dots (no
one over 45 will be able to see them 😉 while the non-breaking spaces will
not. Also, they are a tiny bit thicker on-screen, I believe.

So, I wrote code that would search for non-breaking spaces, wrap the leading
and trailing word in a pub font processing instruction, and updated our
screen stylesheet to display the wrapped text in fuchsia. I also wrote code
to strip out the highlighting.

If you are interested, you can search the Adepters archive (if you are able
to) for the code which I posted. Include the term "nbsp" and "nagai" and
look for a post late in 2010. If you can't turn this up, let me know. I can
dig it up and repost it.

On Tue, Oct 25, 2011 at 2:35 AM, Karthik Kumar <
karthik.kumar@merrillcorp.com> wrote:

> Hello,
>
> The usage of non-breaking space is more in our documents and our editor
> want to see this differently from a regular spaceband. Preferences are set
> to show spaces and tabs but it does not display non-breaking spacebands. Non
> breaking spacebands are inserted as .
>
> Is there a way that I can style this differently and show it in the editor
> view?
>
> Thanks
>
> Karthik
>

Thank you so much Paul. I found the code from the archive. Will test and let you know.



Karthik

Announcements

Top Tags