[MyCode] Code Quote - Quotable code container
#1
Pencil 
Have you ever wanted to have a quotable code container, that looks nice and tidy?
If so; "[MyCode] Code Quote - Quotable code container" is for you!

Syntax:
[cq=username]Your content here[/cq]
NOTE! It WONT work without =username set! If you try
[cq]Your content here[/cq]
It simply won't work.

---
Media
[Image: NIN8qUY.png]
------
Install

global.css
p.codequote {
	color: black;
	max-height: 200px;
	padding: 1%;
	margin: 0 auto;
	background-color: #ff88ff;
	display: block;
	font-family: Monaco, Consolas, Courier, monospace;
	font-size: 13px;
	overflow: auto;
	height: auto;
	border-left: 1px solid #333;
	border-right: 1px solid #333;
}
p.codequotetitle {
	color: black;
	padding: 0.5%;
	margin: 0 auto;
	height: 100%;
	background-color: #ff99ff; 
	text-align: center;
	border: 1px solid #333;
}

MyCodes Configuration:

Title
Code Quote
Short Description
You can now quote code.
Regular Expression:
\[cq\=([0-9a-zA-Z\-_ ]+)\](.*?)\[/cq\]
Replacement:
<p class="codequotetitle">Code Quote:</p><p class="codequote">$2</p><p class="codequotetitle">Posted by $1</p>
Parse order: 0

-----
Please leave feedback on what to improve or clean.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)