Skip to content

How to insert a custom highlight color to a custom copy format? #105

Closed Answered by RyotaUshio
N3C2L asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, highlight colors and copy formats are completely independent from each other, meaning that you can combine one format with any highlight color and you cannot bind a single format to each highlight color.

About the color/colorName template variable: it is the name of the color that is currently selected in the color palette. For example, if "Red" is selected then color becomes a string "red".

An example is included in the preset copy format "Callout":

> [!{{calloutType}}|{{color}}] {{linkWithDisplay}}
> {{text}}

which is evaluated to, e.g

> [!PDF|red] [[file name.pdf#page=1&selection=0,3,2,1&color=red|file name, page 1]]
> This is the text selected in the PDF viewer

assuming r…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by N3C2L
Comment options

You must be logged in to vote
1 reply
@RyotaUshio
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants