-
I'm new to Templater, I'd really appreciate some help figuring out how to create a script that takes my selected text and right aligns it. The plan was to use Please, any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Here you go: <%*
if (tp.file.selection() !== "" ) {
tR+= `<p style='text-align: right;'>` + tp.file.selection() + tp.file.cursor() +`</p>`
}
%> I actually use this quite frequently to highlight my notes! For example, to highlight a text orange <%*
if (tp.file.selection() !== "" ) {
tR+= `<span style='background-color: Orange;color:black'>` + tp.file.selection() + tp.file.cursor() +`</span>`
}
%> Hope that helps. ~welp |
Beta Was this translation helpful? Give feedback.
Here you go:
Demo
I actually use this quite frequently to highlight my notes! For example, to highlight a text orange
Demo text highlighter
Hope that helps.
~welp