Witam jak zrobić aby geshi kolorowało wiele języków
np w znaku [css],[sql] itp.
Niewiem jak bo nie jestem daniel1302 lecz jego brat bo on poechał do Peru
Proszę o pomoc i dziękuje
mam tyle
<?// Simple GeSHi demo
// Include the GeSHi library
require_once 'geshi/geshi.php';
// Make a new GeSHi object, with the source, language and path set
$source = 'echo "hello, world!";
// weeeeee!!!!';
$language = 'php';
$path = 'geshi/';
$geshi = new GeSHi($source, $language);
$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 2); // Numerowanie wierszy
$geshi->set_overall_style('font-size: 90%; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;', true); // ogólne formatowanie (obramowanie)
// and simply dump the code!
$geshi->set_line_style('color: #000000; font-weight: bold;', 'color: #808080; font-weight: bold');
$geshi->set_comments_style(1, 'font-style: italic;');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>GeSHi examples</title>
<style type="text/css">
<!--
<?php
echo $geshi->get_stylesheet(); // style dla danego kodu ?>
-->
</style></head><body>
<?php
// wyświetlenie wyniku
echo $geshi->parse_code(); ?>
Ten post edytował daniel1302 17.10.2008, 06:30:41