I have some issues with a custom BBCode and I'm hoping someone here can help fix this issues.
The purpose:
A custom BBCode that works just like the CODE tag section but allows just the COLOR tag so important bits can be highlighted. If all BBCode tags have to be enabled, that is fine too.
Current problem 1:
When Firefox end-users (no matter the version) select the text in the code box, none of the carriage returns are preserved and pastes like a long, continuous string.
EDIT: Current workaround is to use a browser other than Firefox but still would like to make it work correctly like it does for the CODE tag.
Current problem #2:
Very long lines will go off screen and not stay within the selection window...looking very odd.
EDIT: Current workaround is to use the pre-wrap setting.
BBCode Configuration
Usage:
Code: Select all
[mycode]{TEXT}[/mycode]
Code: Select all
<div style="background-color: #fff; color: #040; white-space: pre; border: 1px solid #000; font: Courier, monospace">{TEXT}</div>
HammondsLegacy Tutorial Forum
Attached are screenshots of the example page in various browsers.
Microsoft Edge v38 Microsoft Internet Explorer v11 Google Chrome v58 (Problem 1 observed) Mozilla Firefox v55 (Problem 1 and 2 observed) Thanks,
LHammonds