atom / language-todo

TODO highlighting package for Atom
Other
80 stars 66 forks source link

Is it just me that's noticing TODO highlighting not working with Mac Silicon? #101

Open Mikelem opened 3 years ago

Mikelem commented 3 years ago

Summary

Motivation

Describe alternatives you've considered

Additional context

Entreprenerdz commented 3 years ago

It's not working... I believe. It's been awhile.

To be clear, I have a fix that I put in place because the highlighting stopped working. I can only assume it was when I got my M1.

Here's the fix. Can't credit the proper party, but someone definitely helped me with this. Potentially here.

Original fix was to modify styles.less and add the following:

atom-text-editor::shadow .type.class.todo {
    background-color: yellow;
    color: black;
    font-style: normal;
 }

But referencing by ::shadow is deprecated so new solution is the following:

atom-text-editor.editor .syntax--type.syntax--class.syntax--todo {
   background-color: yellow;
   color: black;
   font-style: normal;
 }

Note that you'll need to add this for each of the TODO language words you want to modify. Such as:

// WARNING style
atom-text-editor.editor .syntax--type.syntax--class.syntax--warning {
   background-color: red;
   color: white;
   font-style: normal;
 }
 // COMBAK: style
atom-text-editor.editor .syntax--type.syntax--class.syntax--combak {
   background-color: purple;
   color: white;
   font-style: normal;
   font-weight: bolder;
}

All of which results in:

image
Mikelem commented 3 years ago

Thanks @Entreprenerdz! Works great except not with .py files.