473,395 Members | 1,530 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,395 software developers and data experts.

Syntax hightlight?

Thew
69
How can i get the same syntax hightlight as here?:

http://www.codedump.be/code/948/
Sep 23 '10 #1

✓ answered by Markus

Use the highlight_string() or highlight_file() functions.

2 1196
Markus
6,050 Expert 4TB
Use the highlight_string() or highlight_file() functions.
Sep 23 '10 #2
Atli
5,058 Expert 4TB
There are also more complex (and more flexible) things available, like GeSHi. Not to mention various client-side highlighters.
Sep 24 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Alvaro G. Vicario | last post by:
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...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
22
by: Tuang | last post by:
I'm checking out Python as a candidate for replacing Perl as my "Swiss Army knife" tool. The longer I can remember the syntax for performing a task, the more likely I am to use it on the spot if...
14
by: Sandy Norton | last post by:
If we are going to be stuck with @decorators for 2.4, then how about using blocks and indentation to elminate repetition and increase readability: Example 1 --------- class Klass: def...
9
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(...
19
by: Nicolas Fleury | last post by:
Hi everyone, I would to know what do you think of this PEP. Any comment welcomed (even about English mistakes). PEP: XXX Title: Specialization Syntax Version: $Revision: 1.10 $...
3
by: Manuel | last post by:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using devc++. So I've imported the glut32.dsp into devc++, included manually some headers, and start to compile. It return a very...
0
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....
1
by: sony zade | last post by:
We are doing project on java-IDE in MCS-I . We want to know how to highlight syntax of java programs. We have used one textarea which has whole program in one string and that string has been...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.