How-to Code Example Editing Issue

Permalink
Hi, I have a how-to that I wrote recently, but am trying it edit it now. I am trying to show an example bit of code, but I can't seem to get it to show anything other than the print(); bit.

Here is the code that I'm trying to show:

<link rel="stylesheet" type="text/css" href="<?php  echo $this>getStyleSheet('fonts/fonts.css')?>" />


However then I update the How-to, it only shows: print();

Is there a special way to do it?

Tags:

how-to
growthcurve
View Replies:
andrew replied on at Permalink Reply
andrew
You don't need print().

You just need to indent the code by four spaces

http://daringfireball.net/projects/markdown/syntax#precode...

The print that shows up in the sample is just their way of showing sample "code."
growthcurve replied on at Permalink Reply
growthcurve
hmm, didn't work. It doesn't show anything at all.
I tried adding pre and code tags, but that didn't work either.

To be honest, I really don't get why there's a different editor for the How-to area. I find it confusing to use.
Mnkras replied on at Permalink Reply
Mnkras
try using backticks instead:
`