473,382 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

PHP/HTML web syntax highlighter available

I've released the first proper version of my PHP/HTML syntax highlighter.

This program takes HTML from a URL or a file, syntax highlights it
and produces a web page containing the results.

The program - and some examples - can be found at:

--> http://mandala.co.uk/syntax_highlighting/

There are currently 25 highlighting categories - as follows:

PHP HTML
--------------------------------
Method Text
Keyword Comment
String Equals
Comment String
Tags Number
Tags (background) Entity
Punctuation Argument
Brackets Parameter
Braces Angle bracket
Escaped character Tag Open
Operator Tag Close
Number
Variable
Constant

Many more things need doing. If you find a bug - or think you can
help improve this program - don't hesitate to drop me a line.

The source code has been placed in the public domain.

Enjoy,
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #1
0 2062

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matthias Pospiech | last post by:
There are many sites that offer code examples with syntax higlighting. Is there a way to generate the highlighting with a php function automatically ? How is such a thing done generally ? ...
6
by: Steven Woody | last post by:
the Gnu's source-highlight is not suitablt to me since it requires Boost, and Boost by some problem can not installed on my Linux box. so i was trying find another solution that can convert cpp as...
4
by: Tim Conner | last post by:
Hi, I am writing an application in C# that needs a memo control with the capability of highlight certain syntax of programming languages, very similar to what the Vs.Net does, or any language...
4
by: Bob hotmail.com> | last post by:
Everyone I have been spending weeks looking on the web for a good tutorial on how to use regular expressions and other methods to satisfy my craving for learning how to do FAST c-style syntax...
2
by: Johnny | last post by:
Sorry I posted this post earlier but got the name and subject the wrong way round (new to this!) so it perhaps didn't look right Sorry for that. But please please answer if you know anything about...
7
by: Nick | last post by:
Are there any components/controls available that do syntax highlighting of C# and convert to HTML? Thanks.
4
by: gkumar007 | last post by:
Greetings, Are there any HTML editors which support syntax highlighting of c program source code. Let's say I write my html code as follows: <html> <body> <code> #include<stdio.h>
11
by: Christoph Burschka | last post by:
Are there any free PHP libraries/utility functions that can color the syntax of various programming languages (eg. Java and C++)? I am posting code snippets on my site and would like to know if...
2
by: PJ6 | last post by:
Years ago I looked for a text editor control that would do automatic keyword highlighting, to no avail. I found sample code to roll my own, but all of that was crap (mostly because of the way the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.