News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

How to edit some bbc stuff

Started by Goat Spirit, July 26, 2006, 02:02:13 AM

Previous topic - Next topic

Goat Spirit

anyone know how i can edit the text that says Code: above when u do a [code ?

also what file and location is the colors for the php bbc code

also for this:


	
	
	
	
	
	
	
// Do PHP code coloring?
	
	
	
	
	
	
	
if (
$php_parts[$php_i] != \'<?php\')
	
	
	
	
	
	
	
	
continue;


how do i make it read true so when in a [code bbc, it will show php colors?

I made that sig ^^^^^^^^^^

Goat Spirit


I made that sig ^^^^^^^^^^

Oldiesmann

The text is $txt['smf238'] in Themes/default/index.english.php. The code for the code box (no pun intended) is in Sources/Subs.php (line 916 in 1.0.x; lines 1118 and 1156 in 1.1).

If you want PHP coloring inside a code box, you need to use PHP tags, like so:

<?php
echo 'Look at all the colors!';
?>
Michael Eshom
Christian Metal Fans

Advertisement: