Meta Question

poisonedantidote's avatar

How about giving Fluther a code tag option?

Asked by poisonedantidote (21675points) November 9th, 2010

At the moment, you can shrink text or make it bold and do some other stuff. But how about making it so that you can mark something as code?

Maybe even some kind of way of marking things as different types of code. e.g:

thisisHTML:blah blah blah:endHTML
thisisPHP:blah blah blah:endPHP

Something that puts the code in a box with bits of code showing up in their proper colors. or maybe just an all purpose code box that has no colors but marks what is code and what is not.

Observing members: 0 Composing members: 0

16 Answers

ben's avatar

if you put a @ at the beginning and end of each line, you can do code formatting.

print “just like this”

It’s not a perfect solution because it’s not multi-line, but it works for now.

Response moderated (Unhelpful)
poisonedantidote's avatar

I did not know that.. ill have to try it out some time. thx.

ETpro's avatar

@ben Cool. Thanks for the tip.

jrpowell's avatar

Why not just allow the <pre> tag. Posting code here is a pain in the fucking ass. And textile butchers quotes. Why should I need to add “If you copy and paste turn curly quotes straight.”

iamthemob's avatar

@ben – I totally discovered that by accident when I mistakenly put an the symbol at the end of a response to someone.

anartist's avatar

fun! thank you @ben

Cruiser's avatar

Fun stuff! Thanks

erichw1504's avatar

I want an <underline> tag!

Aesthetic_Mess's avatar

I didn’t know you could do that Sorry just wanted to try it out Thank you @ben !

andrew's avatar

@johnpowell With the current system, we can’t do paragraph-level markup without special-casing a whole bunch of stuff. Add this to the fact that we have the engine written in both python and javascript, plus the fact that we’d need to drastically reconstruct it—it’s better to address when we update the response box and add more WYSIWYG editing.

Fred931's avatar

@erichw1504 Hey, the pictures are my job!

gasman's avatar

1111111111 (ten ones)
8888888888 (ten eights)

1111111111 (with code formatting..)
8888888888 (..aka monospace)
I just wanted to try it, too ~ Useful when alignment is critical. Thanks, @ben

jrpowell's avatar

Try indenting with tabs or using quotes.

sferik's avatar

I would be **AWESOME** if Fluther didn’t curl quotes within code blocks. Why???

Answer this question

Login

or

Join

to answer.
Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther