 |
Webcpp - Stable branch
|
Section: Unix |
|
|
|
| Added: Sun, Aug 19th 2001 17:11 PDT (6 years, 8 months ago) |
Updated: Mon, Jan 5th 2004 01:23 PDT (4 years, 4 months ago) |
|
|
About:
Webcpp (Web C Plus Plus) is a command line utility that takes your source code and converts it into an HTML file, using a fully customizable syntax highlighting engine and stylesheets. Webcpp currently supports Ada95, Assembler, ASP, Basic, C, C#, C++, Cg, CLIPS, DOS Batch, EMF, Euphoria, Fortran, Haskell, Java, Javascript, Markup, Modula2, Objective C, Pascal, Perl, PHP, Power Builder, Python, RenderMan, Ruby, SQL, Tcl, Unix shell, UnrealScript, and VHDL highlighting.
Author:
Jeffrey Bakker [contact developer]
Homepage:
http://webcpp.sourceforge.net/
Tar/GZ:
http://osdn.dl.sourceforge.net/[..]urceforge/webcpp/webcpp-0.8.4-src.tar.gz
Changelog:
http://webcpp.sourceforge.net/changes.html
Trove categories:
[change]
Dependencies:
[change]
gcc 3.0 (required)
[download links]
|
|
» Rating:
8.40/10.00
(Rank N/A)
» Vitality: 0.01% (Rank 3872)
» Popularity: 2.98% (Rank 1485)

(click to enlarge graphs)
Record hits: 23,180
URL hits: 17,071
Subscribers: 82
|
|
Branches
Comments
[»]
Highlighting Support for PHP
by Peter Petermann - Dec 7th 2001 07:52:19
what is that for?
using
show_source()
you highlight PHP Source dynamical, no need for static source-highlighted
files..
[reply]
[top]
[»]
Re: Highlighting Support for PHP
by Jeffrey Bakker - Dec 8th 2001 13:58:33
> what is that for?
> using
> show_source()
> you highlight PHP Source dynamical, no
> need for static source-highlighted
> files..
Thank you for the tip. I did not know that. If you'd rather do that, then
fine, don't use webcpp for highlighting your PHP code. But does
show_source() support static AND dynamic colour schemes for your
highlighting? Webcpp does.
Even if you'd still rather use show_souce(), Webcpp also offers support
for 7 other languages, so it's not totally useless...
--Jeffrey Bakker
webcpp author
[reply]
[top]
[»]
Re: Highlighting Support for PHP
by Peter Petermann - Dec 12th 2001 02:39:30
> Even if you'd still rather use
> show_souce(), Webcpp also offers support
> for 7 other languages, so it's not
> totally useless...
didnt want to say that Webcpp is useless :)
just its php stuff.
You can configure your colors for PHP Sourcehighlighting by setting
configuration vars @php.ini, and i guess it is possible to change them in
.htaccess too
regards,
Peter Petermann
[reply]
[top]
[»]
Re {3}: Highlighting Support for PHP
by Jeffrey Bakker - Dec 12th 2001 06:50:47
>
> didnt want to say that Webcpp is
> useless :)
> just its php stuff.
Great! Cool! show_source() sounds good. I actually find it quite humourous
that webcpp's PHP support IS practically useless to you (and possibly
others). But it's already in there, and no use removing it now, so we'll
all just have to live with it. :)
Useful or not, adding PHP support was a fun learning experience for me
anyways, and I enjoyed coding every line of it.
cheers,
--Jeffrey Bakker
webcpp author
[reply]
[top]
[»]
Colorizing via stylesheets [RFE]
by George Orwell - Oct 9th 2001 18:34:15
Why not use stylesheets (CSS) as part of your product? This allows quick
switching between themes (i.e. don't need to re-run tool for each
different color- just associate a new stylesheet) and is compatible with
virtually every modern browser...
[reply]
[top]
[»]
Re: Colorizing via stylesheets [RFE]
by Jeffrey Bakker - Oct 9th 2001 19:17:49
> Why not use stylesheets (CSS) as part of
> your product? This allows quick
> switching between themes (i.e. don't
> need to re-run tool for each different
> color- just associate a new stylesheet)
> and is compatible with virtually every
> modern browser...
George,
Webcpp's scheme system is already _very_ easy to use. Proabably alot
easier than CSS would be. And you don't have to re-run anything to change
schemes in webcpp, I don't really follow what you're saying here.
To use webcpp's colour schemes, all you have to do is tell it which scheme
file to use, with the -c=<schemefile> switch, for example:
$ webcpp source.cpp source.html -c=ide-anjuta.scs
example 2:
$ webcpp main.cpp main.html -c=neon.scs
And so on. That seems quick enough, doesn't it? There's nothing tedious or
cumbersome about that.
Plus, webcpp already comes with many schemes, but it's also easy to create
them if you don't like mine.
--Jeffrey Bakker
webcpp author
[reply]
[top]
[»]
Re: Colorizing via stylesheets [RFE]
by George Orwell - Oct 11th 2001 13:11:14
Sure- Webcpp scs files are probably better. However, CSS is a web
standard (so those who already know it don't need to learn another format)
that can be linked to data files dynamically.
That last part is the important part- using external stylesheets, as in
http://www.w3schools.com/css/css_howto.asp
a user can change the look of the page by simply including a different CSS
file. You mentioned one doesn't need to re-run anything, yet the example
you gave showed webcpp being run twice, once for each style. Using a web
browser, a user can look at a page "styled" using CSS and simply load a
different stylesheet if they don't like the original style- without having
to have a separate program to make the change.
Anyway, just a suggestion. Webcpp could annotate files with CSS-friendly
tags, and then use external predefined CSS stylesheets to look for those
tags and color the page based on the CSS definitions. Looks like a great
product, though, either way. Keep up the good work!
> Webcpp's scheme system is already
> _very_ easy to use. Proabably alot
> easier than CSS would be. And you don't
>
> To use webcpp's colour schemes, all
> you have to do is tell it which scheme
> file to use, with the
> -c=<schemefile> switch, for
> example:
>
> $ webcpp source.cpp source.html
> -c=ide-anjuta.scs
>
> example 2:
>
> $ webcpp main.cpp main.html
> -c=neon.scs
>
> And so on. That seems quick enough,
> doesn't it? There's nothing tedious or
> cumbersome about that.
>
[reply]
[top]
[»]
Re: Colorizing via stylesheets [RFE]
by Jeffrey Bakker - Oct 11th 2001 13:47:30
George,
Thanks for your suggestion. Well, I looked into it and I'm convinced, it
does sound like a very good idea, and it would probably strengthen the
webcpp user-base if I add it in, since CSS is already a web standard.
I'll tell you what: I'll add it in, but still keep my original colour
system as well.
When I'll do it??? I don't know. Right now I'm working on a
Windows GUI v1.0 for webcpp, and also a Gtk+ GUI for webcpp,
and I've just started learning the MFC and Gtk+ GUI toolkits.
--Jeffrey Bakker
webcpp author
[reply]
[top]
[»]
Re: Colorizing via stylesheets [RFE]
by qdenis - Nov 12th 2001 06:08:16
I think no reason to use MFC and Gtk+ GUI toolkits directly.
There are many OS independent graphic libraries. See wxWindows for
example: http://wxwindows.org/
Best regards, Denis.
[reply]
[top]
[»]
Re: Colorizing via stylesheets [RFE]
by Jeffrey Bakker - Nov 12th 2001 12:40:59
> I think no reason to use MFC and Gtk+
> GUI toolkits directly.
> There are many OS independent graphic
> libraries. See wxWindows for example:
> http://wxwindows.org/
>
> Best regards, Denis.
Niiiiiiice, thanks. If only I'd known it sooner...I've already made webcpp
wingui & webcpp gnogui. I think I'll put wxwindows on the list of things I
want to learn.
[reply]
[top]
[»]
Re: Colorizing via stylesheets [RFE]
by Jeffrey Bakker - Nov 15th 2001 17:28:57
Done (kind of). The preview release of 0.6 is now out, based mostly on the
feature that our friend George here, requested.
This is time to test Webcpp for bugs. Alot of changes were made, and it's
guaranteed that some things in the code broke in the process.
Submit your bug reports please.
--Jeffrey Bakker
[reply]
[top]
[»]
Re: Colorizing via stylesheets [RFE]
by milkfish - Nov 28th 2001 22:35:18
> This is time to test Webcpp for bugs.
> Alot of changes were made, and it's
> guaranteed that some things in the code
> broke in the process.
>
> Submit your bug reports please.
I have been having some problems with processing Python scripts where it
gets confused with quoted quotes. For example
-----
print '"','"',"blah"
print '"',"blah"
import string
aValue='String with a "quote"'
aValue = string.replace(aValue,'"',""")
print aValue
-----
The first line will get processed because it thinks the two double quotes
go together. The second line makes it hang. If you take it out, the
string.replace line has the same problem.
Regards,
Rich Magahiz
-- PI 3.14. . .
[reply]
[top]
[»]
Python quoted quotes
by Jeffrey Bakker - Nov 28th 2001 23:30:50
>
> I have been having some problems with
> processing Python scripts where it gets
> confused with quoted quotes. For
> example
> -----
> print
> '"','"',"blah"
> print '"',"blah"
> import string
> aValue='String with a
> "quote"'
> aValue =
> string.replace(aValue,'"',""")
> print aValue
> -----
> The first line will get processed
> because it thinks the two double quotes
> go together. The second line makes it
> hang. If you take it out, the
> string.replace line has the same
> problem.
>
> Regards,
> Rich Magahiz
>
Thanks for reporting it. I'll get working on it sometime soon.
[reply]
[top]
[»]
RE: Python quoted quotes 2
by Jeffrey Bakker - Dec 12th 2001 13:03:32
It's now fixed (ver 0.6.3). Enjoy.
[reply]
[top]
[»]
code2html?
by BluesMoon - Oct 5th 2001 17:26:44
Why not use code2html, available at http://freshmeat.net/projects/code2html/.
It's written in perl and does syntax highlighting of code. Currently
supports: Ada 95, C, C++, HTML, Java, JavaScript, Makefile, Pascal, Perl,
SQL, AWK, M4, and Groff.
Philip
[reply]
[top]
[»]
Re: code2html?
by Jeffrey Bakker - Oct 5th 2001 20:00:11
>
> Why not use code2html ....
>
Becuase webcpp's syntax highlighting can use fully customizable colour
schemes (and comes with about 30 of 'em), for those who would like to
match thier code with the colours of thier website. ;)
--Jeffrey Bakker
webcpp author
[reply]
[top]
[»]
Another Option for highlighting...
by MetaCosm - Aug 20th 2001 01:24:02
_IF_ you use gvim and want to output syntax highlighted code, it is easy.
Goto Syntax->Convert To Html in gvim. It will convert the file you are
looking at _AS_ _IS_. Since vim already supports hundreds of languages
and has wonderful syntax highlighting (and as of 6.0 "syntax
themes") it is a great thing.
If you are not a gvim user, download this at once. I was just pointing
out a little used feature of gvim.
-- Have a great day.
[reply]
[top]
|
|
 |