Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEditor should only highlight valid Emojis when emoji plugin is enabled #3796
Comments
|
Hi @itpropaul The new version has an updated editor which supports a larger range of highlighting. In this case it is recognizing anything between two If you want to disable this highlighting you can place the following css in your userchrome.css file .cm-builtin {
color: inherit !important;
}I'm going to re-label this as an enhancement because it's not a big deal and would make a good first issue for new contributors. |
|
For anyone reading this looking for an issue to work on, here are some details. For enabling/disabling emoji syntax highlighting you will need to change the markdown mode config in (emoji value should be false) and the markdown highlighting is handled by Being able to toggle emoji syntax highlighting with the plugin setting would be enough to close this issue out. Adding smarter highlighting would be a nice-to-have extension. |
Thanks for this @CalebJohn . Does your recommended css snippet only affect highlighting between colon's? Or does it affect any other formatting in the codemirror editor? Either way, is there a link you could provide that I could reference for making other similar changes with the codemirror editor? Thanks! |
Thats right.
We don't currently have every possibility enumerated but there is a forum post that has a lot of different specific customizations you might want. You can also checkout this comment to learn how to use the debug tools to grab specific item classes. You can also search around the forum a bit, there are a few posts that share some customizations. |
|
Hey, I'd love to take up this issue and work on it. Should I go ahead or is it being done by someone? |
|
Go ahead @rahil1304 I'll assign you. |
|
Thanks @CalebJohn |
|
@rahil1304 it only happens in the desktop application when using the code view editor. Some examples that are highlighted include
|
|
Hey so I tried reproducing it, but it doesn't show the yellow color that is supposed to be. Is there some dark mode setting I need to activate before reproducing this issue? @CalebJohn |
|
@rahil1304 you're using a code block in the WYSIWYG editor, but you must be using the other editor. And don't put the text I gave you in a code block. |
|
@CalebJohn So you mean I open it using an external editor? That opens the note by default in my code editor (vscode) which also doesn't show the issue. Do I need to open it in typora? |
|
@rahil1304 No. Please press this button in Joplin Joplin supports 2 editors, a WYSIWYG editor (still experimental, but that's what you took a screenshot of) and the code view editor. The code view editor is the default editor in Joplin and the one that exhibits this bug. |
|
@CalebJohn Joplin version 1.1.4 |
|
Also, probably a stupid question, but I wanted to ask if there is a quick way to change between different versions? or do I need to clone the particular version code itself? |
|
@rahil1304 the bug is present in your screenshot, look closer at the
You can just use |
So just confirming, all I need to do is toggle the boolean emoji variable to false to close this issue right? Because you said smart highlighting is not required as of now. |
|
@rahil1304 That's correct, when the user disables the emoji plugin in settings it should disable emoji highlighting in the CodeMirror editor. |
|
Hey @CalebJohn |
|
Fixed by #3852 , This will be fixed in release 1.3! Thanks @rahil1304 |




In the latest stable build of Joplin, Joplin 1.1.4 (prod, win32), the new codemirror has unexpected highlighting between colons (:).
For example:

Joplin for Desktop
Copyright © 2016-2020 Laurent Cozic
Joplin 1.1.4 (prod, win32)
Client ID: b7a727facab94c808ab6610bcaf55829
Sync Version: 2
Profile Version: 34
Keychain Supported: Yes
Revision: 9610b7e (master)