Welcome to Geeklog, Anonymous Monday, May 06 2024 @ 09:26 pm EDT

Geeklog Forums

Displaying formatted code


Jameson

Anonymous
I've noticed that on some sites they display their code in a nicely formatted layout. (i.e., PHP Kitchen Example)

How do they do that? I think that it would be a great addition to this site so that people can display properly formatted code. I would also like to use it on my site.

Thanks!

: DB :

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Just save your code with the extension .phps (note the 's') and you'll get the same. It's a PHP feature that has nothing to do with Geeklog. As of Geeklog 1.3.6, you can use the
Text Formatted Code
 ...
pseudo tags to produce formatted listings within Geeklog (no colors though). It doesn't work properly in 1.3.6rc1 yet, though ... bye, Dirk
 Quote

All times are EDT. The time is now 09:26 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content