PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.


Login to move these ads to the bottom of the page
  • Index
  •  » Mod Releases
  •  » Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

#1 2005-02-03 12:43:02

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

Code:

##
##        Mod title:  Multi Syntax Highlighter For PunBB
##
##      Mod version:  1.0.0
##   Works on PunBB:  1.2.x
##     Release date:  2005-2-2
##           Author:  zaher dirkey (zaher@parmaja.com)
##
##      Description:  Multi Syntax Highlight for code tags to PunBB 1.2.x
##
##   Affected files:  include\parser.php
##        header.php
##
##       Affects DB:  No
##
##            Notes:  split_text not used in parser.php you can remove it
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.

Download here


To be or not to be, i dont care.

Offline

 

#2 2005-02-03 12:48:44

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

This for version for 1.2.x as topic title, but i maked another version for the mod

DEMO:
  http://www.parmaja.com/forums/viewtopic.php?id=31

PunBB.org
  http://forums.punbb.org/viewtopic.php?pid=33329

Last edited by zaher (2006-11-23 01:07:20)


To be or not to be, i dont care.

Offline

 

#3 2005-03-27 06:54:11

rshadow
Guest

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

no C++ syntax highlighting :(

 

#4 2005-03-27 16:18:56

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

I wrote it in next release, bu this days i have hard works (i am busy) you can wait :)


To be or not to be, i dont care.

Offline

 

#5 2005-06-19 14:51:47

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

New release 1.1.1 for punbb 1.2.5.x


To be or not to be, i dont care.

Offline

 

#6 2005-06-19 15:41:09

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

This MOD highlight using GeShe or phpMSH (mine), just read gehsi_readme.txt file to enable it
and it useing CODE tage like as [ code= php ] or [ code ] for plan text.
I prefer to use phpMSH becuase it is faster 3 time from GeShe


To be or not to be, i dont care.

Offline

 

#7 2005-07-23 04:25:11

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

New file uploaded phpMultiSyn-PunBB-1.1.2.zip for PunBB 1.2.6
Add: support CPP language.


To be or not to be, i dont care.

Offline

 

#8 2005-07-24 16:18:10

Das
New member
Registered: 2005-07-24
Posts: 4

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

Errm.

I have no /include/header.php though I do have header.php in the main directory


I also don't have function parse_message($message, $smilies) but I do have function parse_message($text, $hide_smilies)


I havn't meesed with the files at all, and I am running verision 1.2.6 if that helps any ...

Offline

 

#9 2005-07-24 16:25:52

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

You are right, i fixed the readme.txt
it header.php
and  parse_message($text, $hide_smilies)

also you can use patched parser if you not installed any other MOD

new file uploaded


To be or not to be, i dont care.

Offline

 

#10 2005-07-24 16:27:33

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

phpMultiSyn-PunBB-1.1.3 it is for PunBB 1.2.6


To be or not to be, i dont care.

Offline

 

#11 2005-07-24 16:32:21

Das
New member
Registered: 2005-07-24
Posts: 4

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

One more thing.

http://fatessong.com/forums/viewtopic.php?pid=3#p3

Why isn't anything hilighted?
I used [code= PHP]. Is that correct?

Offline

 

#12 2005-07-24 16:42:55

Das
New member
Registered: 2005-07-24
Posts: 4

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

Nevermind. I got it working.
It wasn't PHP, but php smile.

Offline

 

#13 2005-07-25 03:38:25

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

mmm Case sensitive, i will add it to TODO, Thanks you smile


To be or not to be, i dont care.

Offline

 

#14 2005-07-26 21:42:49

selad
New member
Registered: 2005-07-25
Posts: 3

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

Zahar,

Any support for Visual Basic?

Thanks!

Offline

 

#15 2005-07-28 16:56:51

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

I write it, but i need the Keywords, i cant steal it from other highlightersm.
I will try searching internet for all keywords.


To be or not to be, i dont care.

Offline

 

#16 2005-07-28 23:40:03

selad
New member
Registered: 2005-07-25
Posts: 3

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

Maybe I can help. What do you mean by 'keywords' ?

Elad

Offline

 

#17 2005-07-29 02:02:18

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

All reserved word like (IF, THEN, ELSE, ENDIF etc...), theat must be hilighted.
I was VB programmer before 7 years (VB3, VB4) but i forget everything smile


To be or not to be, i dont care.

Offline

 

#18 2005-07-29 02:14:53

Connorhd
Member
Registered: 2005-01-15
Posts: 202

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

Code:

'as', 'err', 'boolean', 'and', 'or', 'recordset', 'unload', 'to',
'integer','long','single','new','database','nothing','set','close',
'open','print','split','line','field','querydef','instrrev',
'abs','array','asc','ascb','ascw','atn','avg','me',
'cbool','cbyte','ccur','cdate','cdbl','cdec','choose','chr','chrb','chrw','cint','clng',
'command','cos','count','createobject','csng','cstr','curdir','cvar','cvdate','cverr',
'date','dateadd','datediff','datepart','dateserial','datevalue','day','ddb','dir','doevents',
'environ','eof','error','exp',
'fileattr','filedatetime','filelen','fix','format','freefile','fv',
'getallstrings','getattr','getautoserversettings','getobject','getsetting',
'hex','hour','iif','imestatus','input','inputb','inputbox','instr','instb','int','ipmt',
'isarray','isdate','isempty','iserror','ismissing','isnull','isnumeric','isobject',
'lbound','lcase','left','leftb','len','lenb','loadpicture','loc','lof','log','ltrim',
'max','mid','midb','min','minute','mirr','month','msgbox',
'now','nper','npv','oct','partition','pmt','ppmt','pv','qbcolor',
'rate','rgb','right','rightb','rnd','rtrim',
'second','seek','sgn','shell','sin','sln','space','spc','sqr','stdev','stdevp','str',
'strcomp','strconv','string','switch','sum','syd',
'tab','tan','time','timer','timeserial','timevalue','trim','typename',
'ubound','ucase','val','var','varp','vartype','weekday','year',
'appactivate','base','beep','call','case','chdir','chdrive','const',
'declare','defbool','defbyte','defcur','defdate','defdbl','defdec','defint',
'deflng','defobj','defsng','defstr','deftype','defvar','deletesetting','dim','do',
'else','elseif','end','enum','erase','event','exit','explicit',
'false','filecopy','for','foreach','friend','function','get','gosub','goto',
'if','implements','kill','let','lineinput','lock','loop','lset','mkdir','name','next','not',
'onerror','on','option','private','property','public','put','raiseevent','randomize',
'redim','rem','reset','resume','return','rmdir','rset',
'savepicture','savesetting','sendkeys','setattr','static','sub',
'then','true','type','unlock','wend','while','width','with','write',
'vbabort','vbabortretryignore','vbapplicationmodal','vbarray',
'vbbinarycompare','vbblack','vbblue','vbboolean','vbbyte','vbcancel',
'vbcr','vbcritical','vbcrlf','vbcurrency','vbcyan','vbdataobject',
'vbdate','vbdecimal','vbdefaultbutton1','vbdefaultbutton2',
'vbdefaultbutton3','vbdefaultbutton4','vbdouble','vbempty',
'vberror','vbexclamation','vbfirstfourdays','vbfirstfullweek',
'vbfirstjan1','vbformfeed','vbfriday','vbgeneraldate','vbgreen',
'vbignore','vbinformation','vbinteger','vblf','vblong','vblongdate',
'vblongtime','vbmagenta','vbmonday','vbnewline','vbno','vbnull',
'vbnullchar','vbnullstring','vbobject','vbobjecterror','vbok','vbokcancel',
'vbokonly','vbquestion','vbred','vbretry','vbretrycancel','vbsaturday',
'vbshortdate','vbshorttime','vbsingle','vbstring','vbsunday',
'vbsystemmodal','vbtab','vbtextcompare','vbthursday','vbtuesday',
'vbusesystem','vbusesystemdayofweek','vbvariant','vbverticaltab',
'vbwednesday','vbwhite','vbyellow','vbyes','vbyesno','vbyesnocancel',
'vbnormal','vbdirectory'

that what you want?

Offline

 

#19 2005-07-29 15:09:54

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

Connorhd, you taked from GeSHi i dont know if that legal or not or must i mention the Author name to make it legally?.


To be or not to be, i dont care.

Offline

 

#20 2005-07-29 15:22:47

Connorhd
Member
Registered: 2005-01-15
Posts: 202

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

i have no idea, i can't see how it can be illegal to copy a list of words that they will have found somewhere on the net tongue

Offline

 

#21 2005-07-29 15:32:55

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

I will use it and mention the author name of script for the Fair, in this way i can make all language as eazy as i need but i feel somthing wrong.
I am working now to improve the code, before releasing next version.


To be or not to be, i dont care.

Offline

 

#22 2006-02-10 09:17:37

frost110
New member
Registered: 2006-02-10
Posts: 3

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

Found a major bug:

http://www.punres.org/viewforum.php?id=7

--FrosT

Offline

 

#23 2006-03-12 15:08:15

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

I fixed it in bug the [ code  ] witout "=" language name in phpMultiSyn-PunBB-1.1.4.zip
but if you can wait there is a new release of multi syntax for last version of both PunBB ,phpMSH and Geshi


To be or not to be, i dont care.

Offline

 

#24 2006-11-22 21:33:37

pedrotuga
Member
Registered: 2006-05-30
Posts: 20

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

aaaa....
where are the mod versions for punbb 1.2.x?

Offline

 

#25 2006-11-23 01:06:41

zaher
Member
From: Syria
Registered: 2004-07-18
Posts: 61
Website

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

This for version for 1.2.x as topic title, but i maked anther version for the mod phpMultiSyn-PunBB-1.1.7.zip


To be or not to be, i dont care.

Offline

 
  • Index
  •  » Mod Releases
  •  » Multi Syntax Highlight for code tags to PunBB 1.2.x 1.1.x

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.