The latest version only allows user to setup background colors for text highlight using "Alternative Highlight Colors". However, I find such style of highlighting is not very needed for matching texts in my daily work. Most of the time, background coloring is too strong for emphasizing texts and can collide with line highlighting, making the scene chaotic. Usually, if I want to mention a word, I will just highlight the lines and use comments to explain the details.
Thus, I suggest letting user create styles to customize the style entirely for matching texts (and lines), including font weight, font shape, font family, font color, underline, and strike-through line.
For example, I can set up a "placeholder" style ph to override syntax highlighting, making the texts grey and italic but doesn't affect anything else.
Take a look at the code
```latex pht:<:>
\DTLsort[<replacement keys>]{<sort criteria>}{<database name>}
```
It is very self-explanatory that texts like <replacement keys> are placeholders. It completes the syntax highlighting since placeholders are not of the grammar. Background highlighting doesn't work this way.
Also, strike-through line is also self-explanatory. It can tell readers that certain keywords should be deleted, like const.
This feature can also work for inline codes.
The latest version only allows user to setup background colors for text highlight using "Alternative Highlight Colors". However, I find such style of highlighting is not very needed for matching texts in my daily work. Most of the time, background coloring is too strong for emphasizing texts and can collide with line highlighting, making the scene chaotic. Usually, if I want to mention a word, I will just highlight the lines and use comments to explain the details.
Thus, I suggest letting user create styles to customize the style entirely for matching texts (and lines), including font weight, font shape, font family, font color, underline, and strike-through line.
For example, I can set up a "placeholder" style
phto override syntax highlighting, making the texts grey and italic but doesn't affect anything else.Take a look at the code
It is very self-explanatory that texts like
<replacement keys>are placeholders. It completes the syntax highlighting since placeholders are not of the grammar. Background highlighting doesn't work this way.Also, strike-through line is also self-explanatory. It can tell readers that certain keywords should be deleted, like
const.This feature can also work for inline codes.