Syntax Highlight [REMOVED] - Community & Forums Related Discussions

Users browsing this thread: 1 Guest(s)
yrmt
Grey Hair Nixers
# I removed it. It was very broken.
## You can use php,code bbcode tags and markdown.
Reki
Members
Awesome feature. Thanks for implementing, this will serve to be really useful in the forums.
Test-Run
Members
Thank you, they will be very handy.
But I don't think we need the Visual Basic one. :D

Test-Run
We make mistakes, because we are humans,
that is something we can't be proud of.
But we are more then just humans, we are geeks
and that is something to be proud of.


Introduction/Contributions:
http://forums.unixhub.net/showthread.php?tid=27
bottomy
Registered
Just testing :)

[c]#include <stdio.h>

int main(int argc, char *argv[])
{
printf("Hello World\n");
return 0;
}[/c]



[shcode=rails]puts "Hello World"
p ARGV[0].to_i.to_s(2).gsub(/[^1]/,"").length

class Blah
def a
end
end

Blah.new.a[/shcode]
Revcore
Members
Even has a select button, which is pretty cool.

[cpp]
#include <stdio.h>

int main(void){
printf("Dat syntax highlighting");
}
[/cpp]
htor
Members
Testing some code:
[shcode=bash]
test $# -ne 1 && exit 1
arr=(one two three)
echo ${arr[@]}
for i in {1..10}; do
echo $i;
done

function fun() {
str="This is a string"
echo ${str##*a }
}
[/shcode]
What's with the HTML tags showing? Also, shebangs (#!...) doesn't work.
yrmt
Grey Hair Nixers
I really don't know. syntax highlight, spoilers and markdown plugins are a bit broken. Any help on this would be much appreciated.
yrmt
Grey Hair Nixers
I know, some things don't work in markdown such as links, image links, blockquotes, tab code, spoilers.
htor
Members
All I know is that the hash character (`#`) is reserved in Mardown for level 1 headers. So that's probably why the shebangs turns up in big letters.

My five cents: It's nice with language specific syntax hilighting and all that jazz, but is it really necessary to support both that and Markdown? I could do just fine with just Markdown to paste code snippets (also the Stack Exchange sites per example).
yrmt
Grey Hair Nixers
Hm.. You mean remove the syntax coloring plugins for markdown only? Might need to improve the markdown plugin then.