Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Rasbin Rijal
PLUS
Rasbin Rijal
Courses Plus Student 10,864 Points

[SOLVED] About typing the code in php while asking for community

Hello Everybody,

Could someone please suggest me how to type php code while asking to the community? I mean when I type the code sometimes only few lines are displayed as code, sometimes some elements are changed. For eg: the opening php tag and closing php tag, quote signs and angle brackets are not displayed properly.

Is there a proper format of writing codes here?

Thank you.

2 Answers

Will Scharff
Will Scharff
11,815 Points

From what I understand you can format a code block for the post you make and it is with three backticks ``` with the language name you will type, then end after the code enter three backticks again. Here is a solid post from a while back about it: https://teamtreehouse.com/community/posting-code-to-the-forum

<?php
echo "Hello, World.";
?>
jason chan
jason chan
31,009 Points

http://daringfireball.net/projects/markdown/basics

Information is above about markdown. It's similar to git mark down.