Skip to content

Hidden unicode characters (Trojan Source) #4576

Closed
@chschommer

Description

@chschommer

Hi,

in light of the recent "Trojan Source" publication about hidden Unicode control characters doing bad things, I checked how the Ace Editor handles this.
Screenshot 2021-11-04 at 09 39 20

As you can see, you really can not see that something is wrong. Yes, the comment looks a little bit strange, but if you are someone who just copy and pastes scripts, you might not familiar with this.

We tried to show the hidden characters but this does not really improve the situation:
Screenshot 2021-11-03 at 14 04 21

I wonder if it is possible to show the hidden Unicode characters with Ace. E.g., like Atlassian handles this now:
Screenshot 2021-11-04 at 09 41 45

Is there any way to achieve this with the current version of Ace?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions