Thread
:
Add some new BBCodes and improve old ones
View Single Post
Author
Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
05-24-2020 , 09:17 Add some new BBCodes and improve old ones
#
1
I think it would be refreshing to improve the functionality of some BBCodes and add some simple new ones.
1. Add a "copy to clipboard" or "select all" button for [code], [php], [pawn] and similar tags.
This will make it easier to select the code inside these tags, rather than using the mouse and scrolling the entire thing while risking to make a wrong selection.
2. Add line numbering for [code], [php], [pawn] and similar tags.
Right now, when people give error logs, you need to copy the entire code and paste it in a text editor just to see which line is causing problems.
3. Make the [pawn] tag have a scroll bar like the [code] and [php] ones.
Because right now it's just a big mess.
4. Add TAB support for [pawn] and [php] tags.
Right now it translates all tabs to spaces.
5. Make the [tt] tag more noticeable.
=>
HTML code here
<span style="font-weight: bold; font-size: 13px; color: #007002; background-color: #eee; padding: 1px 3px 2px; border: 1px solid #e1e1e8; border-radius: 3px; text-shadow: 1px 1px 1px #ccc; white-space: pre-wrap; word-break: break-all; display: inline-block; font-family: Monaco,Menlo,Consolas,'Courier New',monospace;">{TEXT}</span>
6. Add an [api] tag that will redirect to the API documentation of the specified function.
.
E.g.: [api=amxmodx]is_user_alive[/api] will create a noticeable link that redirects to https://www.amxmodx.org/api/amxmodx/is_user_alive.
The same can be made for SourceMod.
AMXX HTML code here
<a href="https://amxmodx.org/api/{SIMPLETEXT1}/{SIMPLETEXT2}"><span style="font-weight: bold; font-size: 13px; color: #00007F; background-color: #eee; padding: 1px 3px 2px; border: 1px solid #e1e1e8; border-radius: 3px; text-shadow: 1px 1px 1px #ccc; white-space: pre-wrap; word-break: break-all; display: inline-block; font-family: Monaco,Menlo,Consolas,'Courier New',monospace;">{SIMPLETEXT2}</span></a>
SourceMod HTML code here
<a href="https://sm.alliedmods.net/new-api/{SIMPLETEXT1}/{SIMPLETEXT2}"><span style="font-weight: bold; font-size: 13px; color: #00007F; background-color: #eee; padding: 1px 3px 2px; border: 1px solid #e1e1e8; border-radius: 3px; text-shadow: 1px 1px 1px #ccc; white-space: pre-wrap; word-break: break-all; display: inline-block; font-family: Monaco,Menlo,Consolas,'Courier New',monospace;">{SIMPLETEXT2}</span></a>
__________________
My public plugins.
Last edited by OciXCrom; 05-24-2020 at
14:02
.
OciXCrom
View Public Profile
Send a private message to OciXCrom
Find More Posts by OciXCrom