nixers
[UH Tweak] Codeblocks and Quotes - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Development & Graphics (https://nixers.net/Forum-Development-Graphics)
+--- Forum: The WWW (https://nixers.net/Forum-The-WWW)
+--- Thread: [UH Tweak] Codeblocks and Quotes (/Thread-UH-Tweak-Codeblocks-and-Quotes)


[UH Tweak] Codeblocks and Quotes - Evolution - 01-08-2012

Edit: Added to the sites css, no longer need to add it yourself.

Adds style to the codeblocks and quotes as well as removes scrollbars (But can still scroll):

Code:
.codeblock, blockquote {
    background: #353535!important;
    border-color: #2c2c2c!important;
    outline:1px solid #494949;
    overflow-x:hidden!important;
}

.codeblock .title, blockquote cite {
    border-bottom: 1px dashed #494949!important;
    text-shadow: 1px 1px 0px #000;
}
.codeblock .body {
    margin-right:-1000px;
}



RE: [UH Tweak] Codeblocks and Quotes - Jayro - 01-08-2012

These look great, I am glad they have been added. Where do we stand with syntax highlighting?


RE: [UH Tweak] Codeblocks and Quotes - Evolution - 02-08-2012

(01-08-2012, 01:13 PM)Jayro Wrote: These look great, I am glad they have been added. Where do we stand with syntax highlighting?

I think beastie was looking into recoloring the php tags the night before last, not sure about the status of other languages.


RE: [UH Tweak] Codeblocks and Quotes - yrmt - 02-08-2012

(02-08-2012, 09:56 AM)Evolution Wrote:
(01-08-2012, 01:13 PM)Jayro Wrote: These look great, I am glad they have been added. Where do we stand with syntax highlighting?

I think beastie was looking into recoloring the php tags the night before last, not sure about the status of other languages.

We decided php tags were enough. The other syntax highlighters were too buggy. If anyone want to install a good one let me know.


RE: [UH Tweak] Codeblocks and Quotes - Jayro - 02-08-2012

PHP Code:
#! /bin/bash
echo "This is a test of the emergency broadcast system" 

Edit: They work well enough. Maybe you could copy the PHP plugin and change the title? So its the same highlighing but says "sh code" and uses [SH][/SH] tags instead?


RE: [UH Tweak] Codeblocks and Quotes - yrmt - 02-08-2012

I'll do that. Seems fun