![]() |
pre tag in bbcode
Is there any way for a user to use an equivalent to <pre> when putting in a message (eg via bbcode)?
If not, how can a user space out things when they type their message? If there is no way, how would you create a mod to handle this? |
ACP / Custom BB Codes / Add New BBCode
Title: PRE Tag Replacement: <pre>{param}</pre> Example: Code:
[pre]This has a lot spaces[/pre] Use {option}: No |
Thanks, Kirbs! Knew I could count on you.
One bug, though: If the user puts a newline within the [pre] tag, it will get converted into 2 newlines on display! vB turns newlines into newline<br />, and, since it is in pre mode, the browser shows the newline as well. |
1 Attachment(s)
Not sure if it does work 100%, but you can try out the attached Plugin.
File functions_bbcodepre.php must be uploaded to directory includes. |
Excellent! Thanks, Kirbs - I'm trying to figure out the code. Could you explain briefly how it works?
|
Quote:
1. Could you release this as a plugin? 2. while editting, if i switch Editor Mode back/forth many times, any break in the content get remove. |
Did somebody fix this issue?? I tried to use PRE tag, but stills showing a new blank line... like he said https://vborg.vbsupport.ru/showpost....13&postcount=3
I'm using 3.8.4 |
All times are GMT. The time now is 12:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|