Editor (What does the presence of "LRM" in a text line signify?)

Here is some text as it appears in BBEdit on an Apple Mac computer (image #1):

Note the character code is UTF-8 with 57 characters. See yellow highlights.

In WebStorm, I created a new scratch text file and pasted the same text into the new text file.

After pasting the text into the WebStorm scratch text file, I see the following in the WebStorm editor (image #2):

In WebStorm, the character set and count are the same as in BBEdit: UTF-8 and 57 characters. See yellow highlight.

But "LRM" appears. See the two vertical red arrows above in image #2.

Questions:

  1. What are the two red arrows pointing to?
  2. Is "LRM" (with a rule above and below) an "invisible" character?
  3. If a character, how do I determine what the character code is? 
  4. What does "LRM" mean?
  5. Where is the WebStorm documentation explaining what I see -- that is, the significance of the presence of "LRM"?

 

Using:

  1. macOS 13.2.1 (Ventura)
  2. WebStorm 2022.3.2 (Build #WS-223.8617.44, built on January 24, 2023)
0
1 comment

Hi there,

You can disabled that at "Settings (Preferences on macOS) | Advanced Settings | Render special characters, such as control codes, using their Unicode name abbreviations"

 

1. What are the two red arrows pointing to?

The Unicode abbreviation for the invisible character. See the screenshot above on how to disable it. (It's from PhpStorm but it is the same in WebStorm/IntelliJ IDEA and other IDEA based IDEs)

2. Is "LRM" (with a rule above and below) an "invisible" character?

Yes.

3. If a character, how do I determine what the character code is? 

Google only I guess (that's what I do when I need that). Just "unicode lrm" will be enough.

4. What does "LRM" mean?

Name: Left-to-Right Mark (LRM)

HTML Entity: ‎ ‎ ‎

Codepoint: U+200E

5. Where is the WebStorm documentation explaining what I see -- that is, the significance of the presence of "LRM"?

From WebStorm help page (the only relevant reference when searched for "unicode" keyword):

When you copy and paste code to the editor, WebStorm displays the hidden (special) characters represented by their Unicode name abbreviation.

0

Please sign in to leave a comment.