Special Characters / HTML Entities

User 2906089 Photo


Registered User
162 posts

What's the CoffeeCup way of doing these? I'm sure it's something simple I'm over looking. The only way I found was to use the html component but that did not feel right.

For example if you need to use less than or greater than symbols, or adding the small copyright or trademark symbol. So not to confuse a browser they are turned into the following.

<p>&lt; Sample &gt;</p>
<p>&copy; Copyright 2020</p>
<p>Me.inc &trade; </p>

Which is interpreted to:

< Sample >

© Copyright 2020

Me.inc ™

I looked through the glyph but didn't find them.

Thanks for any help in advance!

User 379556 Photo


Registered User
1,056 posts

I raised this matter with the CoffeeCup team in September 2018, as I had a large amount of text prepared in Edit Mode in SD with non-breaking spaces included. That text then became non-editable within SD because the facility for entering special characters in Edit Mode was withdrawn by an update. That is the update referred to here which says,
"Squashed some bugs. This includes a crashing issue when using Text Editor on Windows, as well as pasting code into the Text Editor not displaying as plain text."

This thread, especially towards the end, refers to the matter.

Frank

PS I now use the HTML elements for text with special characters, and am particularly glad to have Edit Code in Dialog
User 187934 Photo


Senior Advisor
19,126 posts
Online Now

Some use js
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
13,085 posts

So far I have been using html elements.
Ha en riktig god dag!
Inger, Norway
My new honey site, built with RFF: https://eikweb.com/horgenhonning/
Component sharing for RFF, RBB, RSD and SD: https://eikweb.com/sharing/


User 2699991 Photo


Registered User
2,941 posts
Online Now

I made a list of the special characters (windows keyboard) saved it an placed it in resources.
then when in text editor mode, open the file in resources then just a matter of copy & paste the actual symbol into the text where I want it to be not ideal or as easy as just typing in the code with the alt key pressed down, but really quite quick once its done a couple of times
The Help You Need: When You Need It The Most
User 2906089 Photo


Registered User
162 posts

I'm still really a newbie, so my next answer was to create a component that saves a standard copyright line. I might have to do more since this was a simple solution.

I also noticed in the new editor a little quirk, you cannot use the tab key in html, sass, css and others. Toggling the tabs or spaces option does nothing. Tabs work fine in C# and JS and others. It's great to have the ability to edit "Wollok" code...not! I wonder where this list of available languages come from? A note into tech support has been completed.

Thanks for the help everyone and Frank, thanks for the background. Very helpful.
User 187934 Photo


Senior Advisor
19,126 posts
Online Now

Put this in the foot area on the Management Project tab. Add a blank paragraph and give it an ID and adjust the script id to match. This will auto update the date.:cool:
<script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000) year+=1900
$('#idofmyparagraph').html("Mydomain.com &copy; "+ year+"");
</script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
13,085 posts

I made a component some 4 years ago for RFF with a year update for the footer. Still available on my sharing page, left column near the bottom. Since it was for RFF, it has the rows and columns, but other than that, it can still be used.
Ha en riktig god dag!
Inger, Norway
My new honey site, built with RFF: https://eikweb.com/horgenhonning/
Component sharing for RFF, RBB, RSD and SD: https://eikweb.com/sharing/


User 458539 Photo


Registered User
1,364 posts

Wayan

You mean the HTML of the special character then just copy and pasted it in the the actual text yes?

User 2699991 Photo


Registered User
2,941 posts
Online Now

Byron Tipping wrote:
Wayan

You mean the HTML of the special character then just copy and pasted it in the the actual text yes?


no I use the unicode special characters
from the file I have put into my resources, I simply coy the actual special character, then paste it into the text wherever I want it to appear
The Help You Need: When You Need It The Most

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.