Formatting categories in the File Window Tip

Started by Ger, December 05, 2014, 09:11:13 PM

Previous topic - Next topic

Ger

In the File Window tip you can format text quite nicely using the formatting tags; especially the <Run>-command can be quite useful:

<Run FontSize='8pt'>{File.Path}</Run></Run>

If you want to list all categories an image is assigned to, the {File.Categories} variable does the job. And if you want to nicely show every category on a separate line, a bit of fiddling with the formatting functions will give a nice result:

{File.Categories|replace:'==´;pereplace:|== > ;pereplace:~;==<LineBreak/>}

It's also possible to combine both commands and format the Categories in the File Window Tip:

Categories:<LineBreak/>{File.Categories|replace:'==´;pereplace:|== > ;pereplace:~;==</Run><LineBreak/><Run FontSize="8pt">;prefix:<Run FontSize="8pt">;postfix:</Run>}



Regards,

Ger


[attachment deleted by admin]

pajaro

Ger,

Thanks for the tip, but a dumb question: where do I enter the formatting tags?  :-[

Pavel.

JohnZeman


pajaro

Quote from: JohnZeman on December 06, 2014, 02:07:53 AM
Edit > Preferences > File Window Tip

Thanks a lot. I have never checked this tab...