Editor: Code formatting options for either block or selection



Publication le 18 oct. 2021

Currently, selecting the Code block option will apply that formatting (using <pre>) to the full text until the next break in paragraph. 

So even though I've only selected THIS word before hitting the button, the whole line is formatted

To apply this to just a selection of text, we need to open the source code editor and apply <code> tags manually.

We'd love to see a dropdown from the Code block button with options that read something like "Block" and "Selection", where "Block" applies <pre> tags and "Selection" applies <code> tags. 


2

2

0 commentaire

      Se connecter pour laisser un commentaire.

      Vous ne trouvez pas ce que vous cherchez ?

      Nouvelle publication