Off Topic
2 replies to this thread. Most Recent
philipcaplan
1 Mar 2010, 10:12 pm
How do I include HTML in a forum post here?
Hi All. I want to post a question with the contents of a Markup Item, so that people can help me with some problems I’m having, but when I try it gets ‘interpreted’ rather than shown literally.
How can I “quote” or in other ways show my HTML un-interpreted? Many thanks.
waltd
1 Mar 2010, 10:31 pmThere are three ways to do it. If it’s just a word or two, add four spaces to the left of the code, like this:
foo(bar) = baz;
If you want to highlight a word or two in the middle of a sentence as code, but not break out into a code block, you put a back-tick on either side of the word or words, touching as if they were quotation marks.
This next word is in code.
If you need to enter a lot of code, on multiple lines, then place four tildes (~~~~) in a row all by themselves on the line before and again after the block of code.
case 'dashboard':
if($person = ActiveRecord::FindById('people',$session->id)){
if(isset($_SESSION['flash'])){
$person->flash = $_SESSION['flash'];
unset($_SESSION['flash']);
}
$out .= '<h1>Dashboard</h1>';
$person->projects = $person->find_children('projects','paid >
0','added_at DESC');
$out .= render_partial('dashboard',$person);
$out .= '<p><a href="/' . APP_FOLDER . 'people/logout">Log Out</a></ p>';
}else{
header('Location: /' . APP_FOLDER . 'people/login');
exit;
}
break;
Walter
On Mar 1, 2010, at 6:12 PM, philipcaplan wrote:
Hi All. I want to post a question with the contents of a Markup Item, so that people can help me with some problems I’m having, but when I try it gets ‘interpreted’ rather than shown literally.
How can I “quote” or in other ways show my HTML un-interpreted?
Many thanks.
Freeway user since 1997
philipcaplan
1 Mar 2010, 10:41 pmThanks for that Walter. Is there a Manual or Help covering such things anywhere? Anyway, with your help I’ve now been able to post my topic “Help with inline CSS” in FreewayTalk! Thanks again.
