Main
Create a Site
Pricing
Forum
Help▼
FAQ
Contact Us
Articles▼
About Our Forums
Planning your Loot System
Building your DKP System
Item Link Guide
In-Game DKP Mod
DKP Profiler Mod
Creating Guides
Layout Guide
Using the Gallery
BBCode Guide
Resources▼
Preview Our Templates!
Features
Free Demo
Guild List
Testimonials
Recent Changes
Logged Out
Create an Account
Login:
Password:
Forgot your password?
To get access, enter your email address or your user name
Cancel
BBCode [code] tag
Back to the Tickets List
BBCode [code] tag
Creator
Nevir
Public or Private
Public
Private tickets are only accessible to you and to DKPSystem.com staff
Public Tickets are visible to everyone)
Status
Closed
Type
Bug
Section of the Site
Forum
Urgency
(3 votes)
Rating
(3 votes)
Description:
Can you modify the [code] bbcode tag to emit a <pre> tag as opposed to a styled div? Using the <pre> will automatically default to a monospaced font *and* it'll preserve whitespace, which the current tag does not do (not to mention make it easy & consistent to style!)
Official DKPSystem.com Comments
Done
User-Submitted Comments
These posts are also available on the
forum
with more features. This page is intentional simplified
View this info on the forum
[You must be logged in to post comments]
6198 days ago
Chops
Said:
Indeed. I also intend on utilizing a library posted a few months back for syntax highlighting in the code tags so keep your eyes peeled
[You must be logged in to reply]
6198 days ago
Nevir
Said:
Ooh, that would be most sexy!
On that note, though, you should make sure that there's some way to simply do non-highlighted code (I notice that people tend to use [code] tags for quick 'n dirty formatting from time to time) Maybe just adding a [pre] as well, unless that syntax highlighter is really good at guessing languages or lack thereof
[You must be logged in to reply]
6198 days ago
Chops
Said:
The syntax highlighter will have an optional parameter specifying the language. So the current code tags won't be affected, while new syntax highlighting will work like:
Here's some <?=$PHP?> code
[You must be logged in to reply]
6198 days ago
Nevir
Said:
Quote by
Chops
The syntax highlighter will have an optional parameter specifying the language. So the current code tags won't be affected, while new syntax highlighting will work like:
Here's some <?=$PHP?> code
Aha, good solution!
[You must be logged in to reply]
6195 days ago
Quaiche
Said:
If you syntax library supports it, I know it would be nice to have these supported syntaxes:
- JavaScript
- HTML
- Lua
I know I've posted stuff with all three...
[You must be logged in to reply]
6141 days ago
Chops
Said:
Completed!
[You must be logged in to reply]
Main
|
Create a Site
|
Features
|
Forum
|
Knowledge Base
|
Contact
|
Privacy Policy
Part of the
DKPSystem.com
Network.