How can insert code ?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
benzo
Posts: 18
Joined: Thu Mar 03, 2005 1:58 pm
Location: Spanien - Madrid

How can insert code ?

Post by benzo »

In some articles I need to insert code javascript. How I can do this ? where is the code tag ?

Thanks.
Thorsten
Posts: 15742
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the code tag is in the format drop down menu in the editor.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
benzo
Posts: 18
Joined: Thu Mar 03, 2005 1:58 pm
Location: Spanien - Madrid

Post by benzo »

ok, sorry, I did not see this. :oops:

Thanks.
benzo
Posts: 18
Joined: Thu Mar 03, 2005 1:58 pm
Location: Spanien - Madrid

Post by benzo »

Umm, but I want to see it like here:

http://www.phpbb.com/phpBB/viewtopic.php?t=185839

or ...

http://www.simplemachines.org/community ... #msg351774





Where I can edit the properties of the tag code?
Thorsten
Posts: 15742
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you can format the <code> tag with your own CSS.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scottz
Posts: 2
Joined: Sat Nov 12, 2005 6:53 am

Post by scottz »

When I use the "code" option in the dropdown it adds php tags to my code. I am trying to have it show the html code as I enter it. Does anyone know how I can accomplish this? Thanks.
Thorsten
Posts: 15742
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

if you want to use HTML code, just put a <pre> around that parts...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scottz
Posts: 2
Joined: Sat Nov 12, 2005 6:53 am

Post by scottz »

I dont know what I am doing wrong... the following still parses the code though:

Code: Select all

<html>
<head>
</head
</html>
I would like the tags to actually display.
Thorsten
Posts: 15742
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

if I add the HTML code by copy&paste the HTML code will be shown as code and won't be parsed.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply