Total Users Online: 111 üye, 2 guest | Tarih/Saat: 2024-04-18 06:01
 
Seditio Kod Renklendirme
#80
2009-11-21 18:05 GMT  Çoklu Alıntı
MUST!

User is: Online status   Gender_M
Posts: 199
Ülke: Ankara - 06
Meslek: Öğrenci
Age: 33

Öncelikle Geshi yi download ediyoruz ve /datas/geshi klasörüne upload ediyoruz.
http://www.cybershare.us/eklentiler/geshi.rar

2. system/functions.php'yi açıyoruz
bul:
PHP:
if ($p2>$p1 && $p1>0)
                {
                $key = '**'.$ii.$unique_seed.'**';
                $code[$key]= substr ($text, $p1+6, ($p2-$p1)-6);
                $code_len = strlen($code[$key])+13;
                $code[$key] = str_replace('\t','   ', $code[$key]);
                $code[$key] = str_replace('  ', '  ', $code[$key]);
                $code[$key] = str_replace('  ', '  ', $code[$key]);
                $code[$key] = str_replace(
                array('{', '<', '>' , '\'', '"', "<!--", '$' ),
                array('{', '<', '>', ''', '"
', '"<!--"', '$' ),$code[$key]);
                $code[$key] = "<div class=\"codetitle\">".$L['
bbcodes_code'].":</div><div class=\"code\">".trim($code[$key])."</div>";
                $text = substr_replace($text, $key, $p1, $code_len);
                }
            }



Altına Ekle Gülüm

PHP:
////Geshi Highlighter MUST! STLYES////
$hcode = array();
$unique_key = $sys['unique'];
$jj = 10000;
$p1 = 1;
$p2 = 1;
while ($p1>0 && $p2>0 && $jj<10031)
{
$jj++;

$p1 = strpos($text, '
'
);
$P2 = STRPOS($TEXT, '
'
);
PREG_MATCH("#\[HIGHLIGHT=(.*?)\ Kod:


(.*?)\[\/highlight\]#se"
, $text, $matches);

$language = $matches[1];

$lang_lenght = strlen($language);

$language = ($language=='html') ? 'html4strict' : $language;



if ($p2>$p1 && $p1>0)

{

$id = '**'.$jj.$unique_key.'**';

$hcode[$id]= substr ($text, $p1+12+$lang_lenght, ($p2-$p1)-12-$lang_lenght);

$hcode_len = strlen($hcode[$id])+24+$lang_lenght;

$hcode[$id] = sed_highlight_bbcode($hcode[$id], $language);

$hcode[$id] = "<div class=\"codetitle&#92;">".strtoupper($language)." ".$L['bbcodes_code'].":</div>

<div class=&#92;"code\">".trim($hcode[$id])."</div>";

$text = substr_replace($text, $hcode[$id], $p1, $hcode_len);

}

}


 


bul:

PHP:
function sed_parse($text, $parse_bbcodes=TRUE, $parse_smilies=TRUE, $parse_newlines=TRUE)

üstüne ekle
[highlight=php]function sed_highlight_bbcode($code, $language){
$find1 = array('&amp;', '{', '<', '>', '$', ''', '"', '\', '&amp;', '&nbsp;');
$replace1 = array('&', '{', '<', '>' , '$', '\'', '"', '\', '&amp;', '&nbsp;');
$code = str_replace($find1, $replace1, $code);

include_once('datas/geshi/geshi.php');
$geshi = new GeSHi($code, $language);
$geshi->set_header_type(GESHI_HEADER_NONE);
//$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 1); // Comment this line to remove the line numbers

$tabs = 4;
$geshi->set_tab_width($tabs);
$code = $geshi->parse_code();
$code = preg_replace('/&amp;#([0-9]+);/', '&#$1;', $code);
$code = str_replace(array('[', ']', "\n"), array('[', ']', ''), $code);

return $code;
}
[/ highlight]





Language => Keyword
ActionScript => actionscript
Ada => ada
Apache Log File => apache
AppleScript => applescript
ASM (NASM based) => asm
ASP => asp
AutoIT => autoit
Bash => bash
BlitzBasic => blitzbasic
C => c
CAD DCL => caddcl
CAD Lisp => cadlisp
C++ => cpp
C# => csharp
CSS => css
D => d
Delphi => delphi
Diff => diff
DOS => dos
FreeBasic => freebasic
HTML (4.0.1) => html4strict
Inno => inno
Java => java
Java 5 => java5
Javascript => javascript
Lisp => lisp
Lua => lua
Matlab => matlab
MPASM => mpasm
MySQL => mysql
NullSoft Installer => nsis
OCaml => ocaml
Openoffice.org BASIC => oobas
Oracle 8 => oracle8
Pascal => pascal
Perl => perl
PHP => php
PHP (Brief version) => php-brief
Python => python
QBasic/QuickBASIC => qbasic
robots.txt => robots
Ruby => ruby
Scheme => scheme
SDLBasic => sdlbasic
SQL => sql
T-SQL => tsql
VisualBasic => vb
VHDL => vhdl
VisualFoxPro => visualfoxpro
XML => xml

son mesaj 1 dakika

kullanım kolaylığı için texboxter2 eklentisini kendinize göre modifiye edebilirsiniz... edemeyenler olursa burda belirtsin yardımcı olurum.
Konuyla İlgili Diğer Başlıklar
Plugins Editör New Seditio 171
Seditio 171 Geliştirmesi.
Seditio
Seditio Eklenti Nasıl Kurulur Video
Seditio rep puan sistemi

Bu mesaj MUST! tarafından 2009-11-21 18:08 GMT, 5261 Gün önce düzenlendi.

 

Seditio Kod Renklendirme
#342
2009-12-09 10:07 GMT  Çoklu Alıntı
Azhack
Seditio
User is: Online status   Gender_M
Posts: 59
Ülke: --- - 00
Meslek:
Age: 38

Language => Keyword
ActionScript => actionscript
Ada => ada
Apache Log File => apache
AppleScript => applescript
ASM (NASM based) => asm
ASP => asp
AutoIT => autoit
Bash => bash
BlitzBasic => blitzbasic
C => c
CAD DCL => caddcl
CAD Lisp => cadlisp
C++ => cpp
C# => csharp
CSS => css
D => d
Delphi => delphi
Diff => diff
DOS => dos
FreeBasic => freebasic
HTML (4.0.1) => html4strict
Inno => inno
Java => java
Java 5 => java5
Javascript => javascript
Lisp => lisp
Lua => lua
Matlab => matlab
MPASM => mpasm
MySQL => mysql
NullSoft Installer => nsis
OCaml => ocaml
Openoffice.org BASIC => oobas
Oracle 8 => oracle8
Pascal => pascal
Perl => perl
PHP => php
PHP (Brief version) => php-brief
Python => python
QBasic/QuickBASIC => qbasic
robots.txt => robots
Ruby => ruby
Scheme => scheme
SDLBasic => sdlbasic
SQL => sql
T-SQL => tsql
VisualBasic => vb
VHDL => vhdl
VisualFoxPro => visualfoxpro
XML => xml


bu kisim dami eklenecek??..bunlari degisdikden sonra textbooterde o highlighter komutu otomatik gozukecekmi?

son mesaj 8 saat 30 dakika önce

function sed_highlight_bbcode($code, $language){
$find1 = array('&amp;', '{', '<', '>', '$', ''', '"', '\', '&amp;', '&nbsp;');
$replace1 = array('&', '{', '<', '>' , '$', '\'', '"', '\', '&amp;', '&nbsp;');
$code = str_replace($find1, $replace1, $code);

include_once('datas/geshi/geshi.php');
$geshi = new GeSHi($code, $language);
$geshi->set_header_type(GESHI_HEADER_NONE);
//$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 1); // Comment this line to remove the line numbers

$tabs = 4;
$geshi->set_tab_width($tabs);
$code = $geshi->parse_code();
$code = preg_replace('/&amp;#([0-9]+);/', '&#$1;', $code);
$code = str_replace(array('[', ']', "\n"), array('[', ']', ''), $code);

return $code;
}
bu kisim ekleyince hata veriyo siteyi acmiyor
hmm napim?

Bu mesaj Azhack tarafından 2009-12-09 18:37 GMT, 5243 Gün önce düzenlendi.

 

Seditio Kod Renklendirme
#357
2009-12-09 20:11 GMT  Çoklu Alıntı
TR-Akdam

User is: Online status   Gender_M
Posts: 187
Ülke: İstanbul - 34
Meslek: TR-Akdam
Age: 31

verdiğin kodlarda sorun çıktı musti çalışmadı
buradakini uygulayın

 

Seditio Kod Renklendirme
#364
2009-12-09 20:38 GMT  Çoklu Alıntı
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 41

Musti Yanlış Eklemiş O yüzden çalışmıyor..

son mesaj 3 dakika önce

Alttaki Kısımda [highlight=?] / [highlight] Arasına Yazabileceğiniz Metinleri vermiştir onları her hangi bir dosyaya eklemiyorsunuz..

Örnek: [highlight=apache] Buraya Apache kodları gelicek [highlight]

Kod:
Language => Keyword
ActionScript => actionscript
Ada => ada
Apache Log File => apache
AppleScript => applescript
ASM (NASM based) => asm
ASP => asp
AutoIT => autoit
Bash => bash
BlitzBasic => blitzbasic
C => c
CAD DCL => caddcl
CAD Lisp => cadlisp
C++ => cpp
C# => csharp
CSS => css
D => d
Delphi => delphi
Diff => diff
DOS => dos
FreeBasic => freebasic
HTML (4.0.1) => html4strict
Inno => inno
Java => java
Java 5 => java5
Javascript => javascript
Lisp => lisp
Lua => lua
Matlab => matlab
MPASM => mpasm
MySQL => mysql
NullSoft Installer => nsis
OCaml => ocaml
Openoffice.org BASIC => oobas
Oracle 8 => oracle8
Pascal => pascal
Perl => perl
PHP => php
PHP (Brief version) => php-brief
Python => python
QBasic/QuickBASIC => qbasic
robots.txt => robots
Ruby => ruby
Scheme => scheme
SDLBasic => sdlbasic
SQL => sql
T-SQL => tsql
VisualBasic => vb
VHDL => vhdl
VisualFoxPro => visualfoxpro
XML => xml

Bu mesaj Kaan tarafından 2009-12-09 20:43 GMT, 5243 Gün önce düzenlendi.
Emlak, Oto Galeri, Rent A Car, Şiir, Edebiyat Script Siparişlerinizi Verebilirsiniz.
Detaylar İçin: kaan@ntka.org

Seditio 170 İndir
Capte Müzik İndir
Seditio Toolbar İndir

 

Seditio Kod Renklendirme
#469
2009-12-12 19:17 GMT  Çoklu Alıntı
RusTik
Seditio
User is: Online status   Gender_M
Posts: 10
Ülke: --- - 00
Meslek:
Age: 121

musti 1ci kisimi yaptim..dataasada atdim...

ama 2ci kisim varya true falan olan yer..ee onu yapinca calismiyor..o kismida solermisin ne yapayim?

 

Seditio Kod Renklendirme
#472
2009-12-12 21:15 GMT  Çoklu Alıntı
Max-Payne
Seditio
User is: Online status   Gender_M
Posts: 43
Ülke: --- - 00
Meslek:
Age: 36

Tşkler MUST! Saol Kanka

 

Seditio Kod Renklendirme
#475
2009-12-13 07:57 GMT  Çoklu Alıntı
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 41

Öncelikle Geshi Burdan,yi download ediyoruz ve /datas/geshi klasörüne upload ediyoruz.


2. system/functions.php'yi açıyoruz.
Kod:
if ($p2>$p1 && $p1>0)
                {
                $key = '**'.$ii.$unique_seed.'**';
                $code[$key]= substr ($text, $p1+6, ($p2-$p1)-6);
                $code_len = strlen($code[$key])+13;
                $code[$key] = str_replace('\t','&nbsp; &nbsp;', $code[$key]);
                $code[$key] = str_replace('  ', '&nbsp; ', $code[$key]);
                $code[$key] = str_replace('  ', ' &nbsp;', $code[$key]);
                $code[$key] = str_replace(
                array('{', '<', '>' , '\'', '"', "<!--", '$' ),
                array('{', '<', '>', ''', '"', '"<!--"', '$' ),$code[$key]);
                $code[$key] = "<div class=\"codetitle\">".$L['bbcodes_code'].":</div><div class=\"code\">".trim($code[$key])."</div>";
                $text = substr_replace($text, $key, $p1, $code_len);
                }
            }

satırlarını bulup altına
Kod:
////Geshi Highlighter////
$hcode = array();
$unique_key = $sys['unique'];
$jj = 10000;
$p1 = 1;
$p2 = 1;
while ($p1>0 && $p2>0 && $jj<10031)
{
$jj++;
$p1 = strpos($text, '
');
$P2 = STRPOS($TEXT, '
');
PREG_MATCH("#\[HIGHLIGHT=(.*?)\ Kod: (.*?)\[\/highlight\]#se", $text, $matches);
$language = $matches[1];
$lang_lenght = strlen($language);
$language = ($language=='html') ? 'html4strict' : $language;
if ($p2>$p1 && $p1>0)
{
$id = '**'.$jj.$unique_key.'**';
$hcode[$id]= substr ($text, $p1+12+$lang_lenght, ($p2-$p1)-12-$lang_lenght);
$hcode_len = strlen($hcode[$id])+24+$lang_lenght;
$hcode[$id] = sed_highlight_bbcode($hcode[$id], $language);
$hcode[$id] = "<div class=\"codetitle\">".strtoupper($language)." ".$L['bbcodes_code'].":</div>
<div class=\"code\">".trim($hcode[$id])."</div>";
$text = substr_replace($text, $hcode[$id], $p1, $hcode_len);
}
}

kodlarını ekliyoruz.

Son olarak

Kod:
function sed_parse($text, $parse_bbcodes=TRUE, $parse_smilies=TRUE, $parse_newlines=TRUE)

satırını bulup üstüne
Kod:
function sed_highlight_bbcode($code, $language){
    $find1 = array('&amp;', '{', '<', '>', '$', ''', '"', '\', '&amp;', '&nbsp;');
    $replace1 = array('&', '{', '<', '>' , '$', '\'', '"', '\', '&amp;', '&nbsp;');   
    $code = str_replace($find1, $replace1, $code);
   
    include_once('datas/geshi/geshi.php');
    $geshi = new GeSHi($code, $language);
    $geshi->set_header_type(GESHI_HEADER_NONE);
    //$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 1); // Comment this line to remove the line numbers

    $tabs = 4;
    $geshi->set_tab_width($tabs);
    $code = $geshi->parse_code();
    $code = preg_replace('/&amp;#([0-9]+);/', '&#$1;', $code);
    $code = str_replace(array('[', ']', "\n"), array('[', ']', ''), $code);

return $code;
}

kodları ekliyoruz.

Textboxer'da kullanabilmek için hazırladığımız yamayı plugins/textboxer2 klasörüne upload edin.
Kullanım:

Kod:
[highlight=kod_dili]kodunuz buraya[/highlight]

Örneğin:
Kod:
[highlight=php]kod buraya[/highlight]

PHP:
$t-> assign(array(
    "VIEW_TITLE" => $v,
    "VIEW_BODY" => $vd  
    ));

$t->parse("MAIN");
$t->out("MAIN");

require("system/footer.php");

Kullana bileceğiniz Kod Dilleri
Kod:
Language => Keyword
ActionScript => actionscript
Ada => ada
Apache Log File => apache
AppleScript => applescript
ASM (NASM based) => asm
ASP => asp
AutoIT => autoit
Bash => bash
BlitzBasic => blitzbasic
C => c
CAD DCL => caddcl
CAD Lisp => cadlisp
C++ => cpp
C# => csharp
CSS => css
D => d
Delphi => delphi
Diff => diff
DOS => dos
FreeBasic => freebasic
HTML (4.0.1) => html4strict
Inno => inno
Java => java
Java 5 => java5
Javascript => javascript
Lisp => lisp
Lua => lua
Matlab => matlab
MPASM => mpasm
MySQL => mysql
NullSoft Installer => nsis
OCaml => ocaml
Openoffice.org BASIC => oobas
Oracle 8 => oracle8
Pascal => pascal
Perl => perl
PHP => php
PHP (Brief version) => php-brief
Python => python
QBasic/QuickBASIC => qbasic
robots.txt => robots
Ruby => ruby
Scheme => scheme
SDLBasic => sdlbasic
SQL => sql
T-SQL => tsql
VisualBasic => vb
VHDL => vhdl
VisualFoxPro => visualfoxpro
XML => xml


Textboxer için highlight Yaması
http://old.seditiocms.com/datas/.....i_kod.rar

Bu mesaj Kaan tarafından 2010-10-13 23:55 GMT, 4935 Gün önce düzenlendi.
Emlak, Oto Galeri, Rent A Car, Şiir, Edebiyat Script Siparişlerinizi Verebilirsiniz.
Detaylar İçin: kaan@ntka.org

Seditio 170 İndir
Capte Müzik İndir
Seditio Toolbar İndir

 

Seditio Kod Renklendirme
#477
2009-12-13 10:03 GMT  Çoklu Alıntı
Max-Payne
Seditio
User is: Online status   Gender_M
Posts: 43
Ülke: --- - 00
Meslek:
Age: 36

Tşkler Kaan

 

Seditio Kod Renklendirme
#497
2009-12-13 20:02 GMT  Çoklu Alıntı
RusTik
Seditio
User is: Online status   Gender_M
Posts: 10
Ülke: --- - 00
Meslek:
Age: 121

true nin ustune ekleme kismi varya olmuyor onu ekleyince site hata veriyor

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/kriptogr/public_html/system/functions.php on line 2240

 

Seditio Kod Renklendirme
#541
2009-12-15 14:00 GMT  Çoklu Alıntı
MUST!

User is: Online status   Gender_M
Posts: 199
Ülke: Ankara - 06
Meslek: Öğrenci
Age: 33

functions.php 2240 satırını yazarmısın?

 

Seditio Kod Renklendirme
#543
2009-12-15 14:13 GMT  Çoklu Alıntı
Aragorn-pc

User is: Online status   Gender_M
Posts: 163
Ülke: Kayseri - 38
Meslek: Kanserle Savaşıyor..
Age: 38

PHP:
function sed_highlight_bbcode($code, $language){


Bende de aynı
Reklama Gerek Yok

Eskiler Tanır, Yeniler Örnek ALır !


Alayına İSYAN !


Az Bir Zamanda Dev Projeler ile Yayın Hayatında ! Sabrediyorum..

 

Seditio Kod Renklendirme
#545
2009-12-15 14:22 GMT  Çoklu Alıntı
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 41

Sorun mu yasıyorsunuz Kod renklendirmede.?
Emlak, Oto Galeri, Rent A Car, Şiir, Edebiyat Script Siparişlerinizi Verebilirsiniz.
Detaylar İçin: kaan@ntka.org

Seditio 170 İndir
Capte Müzik İndir
Seditio Toolbar İndir

 

Seditio Kod Renklendirme
#548
2009-12-15 14:26 GMT  Çoklu Alıntı
Aragorn-pc

User is: Online status   Gender_M
Posts: 163
Ülke: Kayseri - 38
Meslek: Kanserle Savaşıyor..
Age: 38

Rustik'in hatası için 2240 satır'ı yazdım.

yani aşağıdaki kodlarda tırnak hatası olduğunu söylüyor.
Kod:
function sed_highlight_bbcode($code, $language){
    $find1 = array('&amp;', '{', '<', '>', '$', ''', '"', '\', '&amp;', '&nbsp;');
    $replace1 = array('&', '{', '<', '>' , '$', '\'', '"', '\', '&amp;', '&nbsp;');   
    $code = str_replace($find1, $replace1, $code);
   
    include_once('datas/geshi/geshi.php');
    $geshi = new GeSHi($code, $language);
    $geshi->set_header_type(GESHI_HEADER_NONE);
    //$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 1); // Comment this line to remove the line numbers

    $tabs = 4;
    $geshi->set_tab_width($tabs);
    $code = $geshi->parse_code();
    $code = preg_replace('/&amp;#([0-9]+);/', '&#$1;', $code);
    $code = str_replace(array('[', ']', "\n"), array('[', ']', ''), $code);

return $code;
}
Reklama Gerek Yok

Eskiler Tanır, Yeniler Örnek ALır !


Alayına İSYAN !


Az Bir Zamanda Dev Projeler ile Yayın Hayatında ! Sabrediyorum..

 

Seditio Kod Renklendirme
#549
2009-12-15 14:27 GMT  Çoklu Alıntı
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 41

Sizlerde test ettinixmi sorun olup olmadıgı konusunda..
Emlak, Oto Galeri, Rent A Car, Şiir, Edebiyat Script Siparişlerinizi Verebilirsiniz.
Detaylar İçin: kaan@ntka.org

Seditio 170 İndir
Capte Müzik İndir
Seditio Toolbar İndir

 

Seditio Kod Renklendirme
#551
2009-12-15 14:29 GMT  Çoklu Alıntı
Aragorn-pc

User is: Online status   Gender_M
Posts: 163
Ülke: Kayseri - 38
Meslek: Kanserle Savaşıyor..
Age: 38

Evet biraz önce test ettim, tırnak hatası olduğunu söylüyor.

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in
Reklama Gerek Yok

Eskiler Tanır, Yeniler Örnek ALır !


Alayına İSYAN !


Az Bir Zamanda Dev Projeler ile Yayın Hayatında ! Sabrediyorum..

 

Seditio Kod Renklendirme
#553
2009-12-15 14:31 GMT  Çoklu Alıntı
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 41

Şu an ben kendim Kullanıyorum bir sorunla karşılaşmadım Kodları inceler tekrar yayınlarım..

Örnek:
PHP:
function sed_highlight_bbcode($code, $language){
    $find1 = array('&amp;amp;', '{', '<', '>', '$', ''', '"', '\', '&amp;amp;', '&amp;nbsp;');
    $replace1 = array('&', '{', '<', '>' , '$', '\'', '"
', '&#92;', '&amp;amp;', '&amp;nbsp;');  
    $code = str_replace($find1, $replace1, $code);
   
    include_once('datas/geshi/geshi.php');
    $geshi = new GeSHi($code, $language);
    $geshi->set_header_type(GESHI_HEADER_NONE);
    //$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 1); // Comment this line to remove the line numbers

    $tabs = 4;
    $geshi->set_tab_width($tabs);
    $code = $geshi->parse_code();
    $code = preg_replace('/&amp;amp;#([0-9]+);/', '&#$1;', $code);
    $code = str_replace(array('[', ']', "\n"), array('[', ']', ''), $code);

return $code;
}

Bir Sorun Oldugunu Sanmıyorum eklerken ufak bişey gözden kaçıyordur..
Emlak, Oto Galeri, Rent A Car, Şiir, Edebiyat Script Siparişlerinizi Verebilirsiniz.
Detaylar İçin: kaan@ntka.org

Seditio 170 İndir
Capte Müzik İndir
Seditio Toolbar İndir

 

Seditio Kod Renklendirme
#554
2009-12-15 14:37 GMT  Çoklu Alıntı
Aragorn-pc

User is: Online status   Gender_M
Posts: 163
Ülke: Kayseri - 38
Meslek: Kanserle Savaşıyor..
Age: 38

o kod'lar da olmadı ama t3 'ün sitesinden aldiğim kodlar ile hata çıkmadı..

PHP:
function sed_highlight_bbcode($code, $language){
    $find1 = array('&amp;amp;', '{', '<', '>', '$', ''', '"', '\', '&amp;amp;amp;', '&amp;amp;nbsp;');
    $replace1 = array('&', '{', '<', '>' , '$', '\'', '"
', '&#92;\', '&amp;amp;', '&amp;nbsp;');   
    $code = str_replace($find1, $replace1, $code);
 
    include_once('datas/geshi/geshi.php');
    $geshi = new GeSHi($code, $language);
    $geshi->set_header_type(GESHI_HEADER_NONE);
    //$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 1); // Comment this line to remove the line numbers
 
    $tabs = 4;
    $geshi->set_tab_width($tabs);
    $code = $geshi->parse_code();
    $code = preg_replace('/&amp;amp;#([0-9]+);/', '&#$1;', $code);
    $code = str_replace(array('[', ']', "\n"), array('[', ']', ''), $code);
 
return $code;
}


son mesaj 9 dakika önce

peki geshi.php nerede ? class.geshi.php ve functions.geshi.php var onları yapıncada olmuyor

Bu mesaj Aragorn-pc tarafından 2009-12-15 14:47 GMT, 5237 Gün önce düzenlendi.
Reklama Gerek Yok

Eskiler Tanır, Yeniler Örnek ALır !


Alayına İSYAN !


Az Bir Zamanda Dev Projeler ile Yayın Hayatında ! Sabrediyorum..

 

Powered by Seditio © 2009-2012 All Rights Reserved