Serving the Quantitative Finance Community

 
User avatar
lballabio
Topic Author
Posts: 0
Joined: January 19th, 2004, 12:34 pm

Inline code snippets

May 6th, 2005, 7:06 am

Hi,while I'm aware of the "attach code" feature, I often find me wishing for some support for inserting formatting code in the body of a post. On the one hand, in the case of multiple code snippets, it is rather inconvenient to have them attached at the end and having to refer to listing 1, listing 2 and so on. But on the other hand, it is annoying to write:and have it rendered as:class Foo { public: int bar() const { // the answer return 42; }};(see what I mean?)Incidentally, preformatted text can be inserted by abusing the LaTeX environment, as I did above. But it would be more convenient to have some specific support---maybe a [pre] tag corresponding to the html <pre> ?Thanks,Luigi
 
User avatar
exotiq
Posts: 2
Joined: October 13th, 2003, 3:45 pm

Inline code snippets

May 25th, 2005, 11:08 pm

Ooohhh...this would be nice.Wasn't there an open-source program for formatting, color-coding, and beautifully indenting code in the major languages?
 
User avatar
Administrator
Posts: 11
Joined: November 19th, 1999, 8:54 am

Inline code snippets

May 27th, 2005, 10:28 am

We will look into options when we next upgrade the site... good suggestion though.Thanks