JustinM01 Posted February 25, 2009 Share Posted February 25, 2009 Basically I would like to create something like what PHPFreaks and other sites have. When you post something here your can include a code snippet in a code block within your topic content. I was wondering how to do that as I would like to include such a feature in my blog. I want to create something like the following: some code If anyone know's of a site that already explains how to do this, than I would certainly take a link as help! Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/146883-solved-question-about-formatting-a-code-block-in-a-blog-post/ Share on other sites More sharing options...
premiso Posted February 25, 2009 Share Posted February 25, 2009 You want to look into BBCode. http://www.sitepoint.com/article/bb-code-php-application/ For a tutorial on BBCode. Google PHP BBCode for other examples. Quote Link to comment https://forums.phpfreaks.com/topic/146883-solved-question-about-formatting-a-code-block-in-a-blog-post/#findComment-771162 Share on other sites More sharing options...
JustinM01 Posted February 25, 2009 Author Share Posted February 25, 2009 Thanks, I appreciate it! Quote Link to comment https://forums.phpfreaks.com/topic/146883-solved-question-about-formatting-a-code-block-in-a-blog-post/#findComment-771168 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.