Total Users Online: 0 üye, 214 guest | Tarih/Saat: 2026-09-22 09:31
 
Seditio Kod Renklendirme
#80
2009-11-21 20:05 GMT  oklu Alnt
MUST!

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

?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:
:
hp]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

:
hp]////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\">".strtoupper($language)." ".$L['bbcodes_code'].":</div>



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



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



}



}





 


bul:

:
hp]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
Yeni Site Aktif Edildi. www.seditio.com.tr
Plugins Editör New Seditio 171
Seditio 171 Geliştirmesi.
Seditio
Seditio Eklenti Nasıl Kurulur Video

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

 

Powered by Seditio © 2009-2012 All Rights Reserved