Syntax Highlight [REMOVED] - Printable Version +- nixers (https://nixers.net) +-- Forum: General (https://nixers.net/Forum-General) +--- Forum: Community & Forums Related Discussions (https://nixers.net/Forum-Community-Forums-Related-Discussions) +--- Thread: Syntax Highlight [REMOVED] (/Thread-Syntax-Highlight-REMOVED) |
Syntax Highlight [REMOVED] - yrmt - 22-07-2012 # I removed it. It was very broken. ## You can use php,code bbcode tags and markdown. RE: Syntax Highlight - Reki - 24-07-2012 Awesome feature. Thanks for implementing, this will serve to be really useful in the forums. RE: Syntax Highlight - Test-Run - 25-07-2012 Thank you, they will be very handy. But I don't think we need the Visual Basic one. :D Test-Run RE: Syntax Highlight [Update] - bottomy - 27-07-2012 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] RE: Syntax Highlight [Update] - Revcore - 28-07-2012 Even has a select button, which is pretty cool. [cpp] #include <stdio.h> int main(void){ printf("Dat syntax highlighting"); } [/cpp] RE: Syntax Highlight [Update] - htor - 28-07-2012 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. RE: Syntax Highlight [Update] - yrmt - 28-07-2012 I really don't know. syntax highlight, spoilers and markdown plugins are a bit broken. Any help on this would be much appreciated. RE: Syntax Highlight [Update] - yrmt - 28-07-2012 I know, some things don't work in markdown such as links, image links, blockquotes, tab code, spoilers. RE: Syntax Highlight [Update] - htor - 28-07-2012 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). RE: Syntax Highlight [Update] - yrmt - 28-07-2012 Hm.. You mean remove the syntax coloring plugins for markdown only? Might need to improve the markdown plugin then. |