Before writing it myself (str_replace, preg_replace and a keyword list
updated as I find them?) I'd like to know whether there's already a simple
syntax highlighting class or script I can use to convert my code snippets
(PHP, JavaScript, HTML, CSS...) into cute coloured HTML.
Quick research lead to me incredibly complicated inventions that use XML
parsers or even require to compile and install libraries. I don't really
need that much.
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ No envíes tu dudas a mi correo, publícalas en el grupo
-+ Do not send me your questions, post them to the group
-- 6 1528
Alvaro G. Vicario <kA*****************@terra.es> wrote: Before writing it myself (str_replace, preg_replace and a keyword list updated as I find them?) I'd like to know whether there's already a simple syntax highlighting class or script I can use to convert my code snippets (PHP, JavaScript, HTML, CSS...) into cute coloured HTML.
What is wrong with highlight_string or highlight_file ?
*** Daniel Tryba escribió/wrote (19 Mar 2005 23:06:56 GMT): What is wrong with highlight_string or highlight_file ?
If I had to write myself *all* the software I use... :)
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ No envíes tu dudas a mi correo, publícalas en el grupo
-+ Do not send me your questions, post them to the group
--
Alvaro G. Vicario wrote: Before writing it myself (str_replace, preg_replace and a keyword list updated as I find them?) I'd like to know whether there's already a simple syntax highlighting class or script I can use to convert my code snippets (PHP, JavaScript, HTML, CSS...) into cute coloured HTML.
Quick research lead to me incredibly complicated inventions that use XML parsers or even require to compile and install libraries. I don't really need that much.
do a search for "pretty printers"
--TekWiz
*** TekWiz escribió/wrote (Sat, 19 Mar 2005 18:17:05 -0600): do a search for "pretty printers"
Super! Ah, the importance of choosing the right keywords :)
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ No envíes tu dudas a mi correo, publícalas en el grupo
-+ Do not send me your questions, post them to the group
--
Alvaro G. Vicario wrote: Before writing it myself (str_replace, preg_replace and a keyword
list updated as I find them?) I'd like to know whether there's already a
simple syntax highlighting class or script I can use to convert my code
snippets (PHP, JavaScript, HTML, CSS...) into cute coloured HTML.
<snip> http://qbnz.com/highlighter/ ?
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
*** R. Rajesh Jeba Anbiah escribió/wrote (20 Mar 2005 09:04:09 -0800): http://qbnz.com/highlighter/ ?
Thanks a lot. This is exactly what I was looking for. It even formats code
into HTML the very same way I had in mind, including
tabs-to-custom-number-of-spaces and line wrap.
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ No envíes tu dudas a mi correo, publícalas en el grupo
-+ Do not send me your questions, post them to the group
-- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: martin |
last post by:
Hello,
I just got the SUN Java IDE. (Netbeans IDE 3.5.1)
Very very nice, and I worked myself through the tutorial (about making a
colorswitch).
Now, When I compile it gives no errors at all. So far so good.
But when I want to execute, it askes to "set project main class".
The only option it displays is the default project. But the "okay"...
|
by: Brian Sabbey |
last post by:
Here is a first draft of a PEP for thunks. Please let me know what you
think. If there is a positive response, I will create a real PEP.
I made a patch that implements thunks as described here. It is available
at:
http://staff.washington.edu/sabbey/py_do
Good background on thunks can be found in ref. .
Simple Thunks
|
by: m_schellens |
last post by:
emacs fails to hightlight the following line properly, when
I changed 'continue' to 'goto skip'.
So just to be sure there isn't any weired rule,
does the following do what I want?
if( yLog) if( y <= 0.0) goto skip; else y = log10( y);
Thanks,
marc
|
by: Frank |
last post by:
Hi,
the text in my textbox is highlighted when I tab to it. I can't find the
DESIGN property to prohibit this.
Please help me out
Thanks
Frank
|
by: Brian Elmegaard |
last post by:
Hi,
I am struggling to understand how to really appreciate object
orientation. I guess these are FAQ's but I have not been able to find
the answers. Maybe my problem is that my style and understanding are
influenced by matlab and fortran.
I tried with the simple example below and ran into several questions:
1: Why can't I do:
def...
| |
by: Bern McCarty |
last post by:
I have a simple ref class in its own namespace that needs to coexist with
a legacy typedef alias for "unsigned int" in the global namespace that has
the identifier as itself. Everything compiles fine with the old MEC++ syntax,
but I cannot figure out how to write the code so that it will compile in
C++/CLI. Can someone tell me how? Here is...
|
by: manimuthu |
last post by:
Hai,
I am newbie in perl. I had tried to search a particular text and hightlight the text. I had using perl tk for text widgets. Anyone can helpme how to highlight text for using text widget.
Thanks & Regards,
Muthu,
|
by: John Dann |
last post by:
A Python newbie, but some basic understanding of how classes, objects
etc work in eg VB.Net. However, I'm struggling a little to translate
this knowledge into the Python context.
I'm trying to teach myself this aspect of Python by working up a trial
project, part of which calls for pulling in data from a serial data
connection at regular...
|
by: altaafhussein |
last post by:
Hi, i have checked all over the internet, but they just hightlight rows using the datagrid attributes. How do you hightlight a selected row in a datagrid. I tried the onclick attribute but that does not work as it keeps the row selected when another row is selected.
Thanks for any help
altaafhussein
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |