[pmwiki-users] PmSyntax

Petko Yotov 5ko at 5ko.fr
Thu Nov 3 15:37:32 PDT 2022


Hi Hans,

The red and blueish colours are in fact the same as the ones in the 
highlighted area, see attached screenshot. If you redefine these 
colours, the label will use yours.

At the beginning, the label had a checkbox, but after I reviewed all 
skins in the Cookbook, some of them defined "display:block" for 
checkboxes. It felt like too much work/hack to adapt PmSyntax, and I 
decided to remove the checkbox.

I like the idea to use the standard link colour, or a button, let me 
think about it.

In the meantime, as usual you can override the styles in local.css or 
skin.css, for example:

   #chk_hlt, #chk_hlt * {
     color: blue;
   }

   #chk_hlt {
     background-color: buttonface;
     padding: .1em .3em;
     border-radius: .3em;
     border: 2px outset #888;
   }

You can even override the bracket and text colour of the label, 
depending on whether the highlighting is enabled or not - it adds or 
removes a .pmhlt class name to the label.

As for [[Highlight off]], this too can be done with custom CSS:

   #chk_hlt.pmhlt .pmurl::after {
     content: " off";
   }

Petko

-- 
If you upgrade :  https://www.pmwiki.org/Upgrades


On 03/11/2022 22:54, design1 at softflow.uk wrote:
> Hello Petko,
> 
> thank you! Nice recipe!
> 
> Only one small point of observance:
> The edit form has a link to toggle hilighting: [[Highlight]]
> When hilight is not active, this appears with black text, when hilight
> is active, the text is blueish, with purple square brackets.
> I think it would be good to have this link either appear as a button,
> or as standard link, in standard link colour, determined by whatever
> the skin sets as link colour, so it is very clear there is something
> to click!
> The square brackets could even be purple, as this indicated then a
> highlighted link, and serves as a hint what one wants to have
> activated.
> When highlighing is active, it may be good to read [[Highlight off]],
> to make the toggle clear.
> 
> 
> cheers,
> Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PmSyntax-chk.png
Type: image/png
Size: 7212 bytes
Desc: not available
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20221103/2b005dcd/attachment-0001.png>


More information about the pmwiki-users mailing list