SMF icon indicating copy to clipboard operation
SMF copied to clipboard

[3.0] code tag changes

Open live627 opened this issue 4 months ago • 2 comments

  • wrap code in preformatted html tags
  • do the same in the sceditor
  • bonus: fix php tag processing in the sceditor
  • add buttons for selecting and expanding code blocks with js; don't output them from php
  • remove smfSelectText( ) as it is unused now

live627 avatar Aug 27 '25 07:08 live627

For semantics and accessibility, what about replacing the div header with figure/figcaption?

<figure>
    <figcaption>PHP code: <button>Select</button> <button>Expand></button></figcaption>
    <pre><code>$foo</code></pre>
</figure>

ThistleSifter avatar Aug 27 '25 15:08 ThistleSifter

@live627 This is in draft. Is that intended?

jdarwood007 avatar Sep 20 '25 00:09 jdarwood007