Syntax Highlighting? Topic is solved

The Forum Rules, general FAQ and questions or comments about the forum are posted here.
Post Reply
darklordsatan
Earned a small fee
Earned a small fee
Posts: 17
Joined: Thu Jul 14, 2005 5:51 am
Contact:

Syntax Highlighting?

Post by darklordsatan »

I wonder how did you guys add the "wxwidgets" syntax highlighting to the code tags...
Is it some sort of mod for phpBB or a template?

Thanks
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

It is something UpCase fixed. He reworked the geshi mod (general code highlighting) to also incorporate wxWidgets links and special object recognition). So out code tag always shows "wxWidgets" now ;-)

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
daddydave
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 214
Joined: Wed Jun 15, 2005 3:31 am
Location: United States
Contact:

Post by daddydave »

I love that feature.
lowjoel
Part Of The Furniture
Part Of The Furniture
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel »

we (i?) can technically have makefile highliting, but no one uses it, or .rc file highlisghting, but i dont think many people use it... so we just settled for C++ syntax :P
Hossein
Earned some good credits
Earned some good credits
Posts: 120
Joined: Sun Sep 21, 2008 7:23 am
Location: Somwhere nearby...
Contact:

Post by Hossein »

by the way , how to achieve syntax highlighting in a wx application? can sb help ?
Add-on Components (90)
Applications (183)
Development Tools (27)
Icons and Resources (1)
Sample Code and Project Templates (10)
Utilities (4)
wxWidgets (10)

http://www.wxcommunity.com/
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE »

Hi!
Although is not the right forum for that kind of question, I'll give two hints:
1. The docs for 2.9.0 have a wxStyledTextCtrl listed, it's a Scintilla based control.
2. For older releases, check wxCode and search for STC or Scintilla.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
Utensil
Moderator
Moderator
Posts: 423
Joined: Sun Feb 03, 2008 11:38 am
Location: China

Post by Utensil »

Hi upCase,

Wonder if it's possible to "backport" this wxWidgets highlighting feature to GeSHi, since I just saw GeSHi supports "C++ (with QT)"...A little "envy"...


Regards,

Utensil
In fascination of creating worlds by words, and in pursuit of words behind the world.

On Github: http://utensil.github.com
Technical Blog in Chinese: http://utensil.iteye.com/
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE »

Hi!
I don't know if I understand this "backport" correctly. In fact the highlighting here uses geshi as a phpbb addon :)
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
Utensil
Moderator
Moderator
Posts: 423
Joined: Sun Feb 03, 2008 11:38 am
Location: China

Post by Utensil »

Hi~

"uses geshi as a phpbb addon" still isn't quite clear to me...I guess you must have modified geshi's code to support wxWidgets class names, didn't you? so I was wondering if it's possible to add wxWidgets highlighting feature back to geshi based on your modification, so that geshi itself will be able to support wxWidgets highlighting directly while it already supports Qt highlighting...

Just a free imagination...

-Utensil
In fascination of creating worlds by words, and in pursuit of words behind the world.

On Github: http://utensil.github.com
Technical Blog in Chinese: http://utensil.iteye.com/
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE »

Utensil wrote:I guess you must have modified geshi's code to support wxWidgets class names, didn't you?
Aaah, ok :)
Sometimes my mind is a bit slow these days...

Yes, but I didn't really modify the code, but added a new language definition file. I'm not sure whether this is compatible with newer versions, but in theory this would be possible to do.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
Post Reply