Typora has a “highlight” format, similar to highlighters, but feels the default color is too bright and uncomfortable to look at for a long time, so customize the color by modifying the theme file.

To do this, first go to the theme file: “File” ==> “preferences” (or Ctrl + comma), in the right “appearance” bar to find “Open theme file” open:Open the.css file for the theme and add the following text at the end:

mark {
  background: #a9d18e;
  border-bottom: 0px solid #ffffff;
  padding: 0.0 px.;
  margin: 0 0px;
}
Copy the code

If you just want to change the color, you can just write the background line:

mark {
    background: #a9d18e;
}
Copy the code

Like this:

The hexadecimal number after backgraoud is the desired color. Border-bottom is the size and color of the underline. Padding is the top, bottom, left, and right border size. Margin is the distance between the marked text and the left and right text.

Here’s a comparison of the parameters:Finally, there is no shortcut for highlight in Typora, but you can customize it.Ctrl + a commaOpen “Preferences”, open advanced Settings at the bottom of “General”, find the location below, and add your own shortcut keys: