Welcome Guest, Not a member yet? Register   Sign In
Getting <code> to work in CI
#1

[eluser]the_unforgiven[/eluser]
Hi guys

how can i get some code to show like on this forum:

Code:
like this

i have used <pre> and also <code> to show some php and html in some site docs im doing on a php page but it show nothing.
#2

[eluser]Jason Stanley[/eluser]
The box is obviously css styled isn't it.

As for getting it to show this is a good place to start:
http://php.net/manual/en/function.htmlentities.php
#3

[eluser]the_unforgiven[/eluser]
Yes its styled, but just doesn't show anything not even plain english
#4

[eluser]John_Betong_002[/eluser]
@the_unforgiven

Try Googling for BBCODE:
Code:
no formattig
[b]bold text[/b]
[pre]
        this           is      a    test   to  see       if    it works
[/pre]
&nbsp;
&nbsp;
#5

[eluser]the_unforgiven[/eluser]
thanks ill try that.

Is there nothing in CI thou?
#6

[eluser]PhilTem[/eluser]
Nope, CI only provides you tools/libraries to develop such things like a BBcode parser easier. CI isn't a framework like Zend, it's kept pretty basic and only provides some things like session, database, caching, MVC-structure. Anything additional needs to be written by yourself - or by someone else Wink And maybe somebody wrote something for CI that I am not aware of. Try googling. Or google for a basic PHP BBcode library and adopt it to CI coding-standard (which isn't necessarily needed)
#7

[eluser]the_unforgiven[/eluser]
Right so i just need to write a libaray for it then i guess, thanks all for your contributon
#8

[eluser]CroNiX[/eluser]
Go to the CI wiki and type "bbcode". Go to google and type "codeigniter bbcode". Lots of stuff already out there...
#9

[eluser]the_unforgiven[/eluser]
Hi Chronix

Yes i got one what Phil Sturgeon has done but not sure how I get it function




Theme © iAndrew 2016 - Forum software by © MyBB