10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Dear Gurus,
I'm getting a bunch of print spool files in pcl format.
I need to edit them moving graphics to i.e. right to make room for barcode stickers.
I'm trying to run a script in AIX 7.1.0.0 to edit some pcl pointer positions to the right. i.e. change p1018X to p1818X.
Piece of cake.... (11 Replies)
Discussion started by: emare
11 Replies
2. Programming
I am trying to add some variable print to a list of pcl files within a folder.
Am doing some programming within perl, bash and some other scripts.
(Open to a format and language).
I need to add an incrementing number (variable that will increment by one each time) to the first page of each pcl... (2 Replies)
Discussion started by: mach1
2 Replies
3. Shell Programming and Scripting
I am trying to add some variable print to a list of pcl files within a folder.
Am doing some programming within perl, bash and some other scripts.
(Open to a format and language).
I need to add an incrementing number (variable that will increment by one each time) to the first page of each pcl... (1 Reply)
Discussion started by: mach1
1 Replies
4. UNIX for Dummies Questions & Answers
I am using ghostscript to convert a multi-page pdf file to individual jpg files. I am wondering if there is a way to get ghostscript to start numbering the output jpg files from zero? What i am trying to convey is that it starts naming my files from page_001.jpg, page_002.jpg, etc., and would like... (0 Replies)
Discussion started by: RacerX
0 Replies
5. Solaris
Hi,
How to find whether the server is running with half duplex or full duplex. I tried with the following command ndd -get /dev/ but am not getting any output,. Is the command correct?
Also let me know how to change from half to full duplex. (1 Reply)
Discussion started by: rogerben
1 Replies
6. AIX
I need to conver a PCL or PDF file to text in AIX, and I donīt know how. (0 Replies)
Discussion started by: 10789
0 Replies
7. HP-UX
Hi,
I have a pcl file with a color invoice. Can you please advise me how I can print it directly from Hp/Ux command line to a network printer with a known IP address. The printer model is Xerox Docu Color 1632. How can I configure that printer under HpUx and which command is for printing pcl... (2 Replies)
Discussion started by: piooooter
2 Replies
8. HP-UX
Good People,
My issue is an aging laserjet4si and its inability to interpret anything beyond PCLv2. Would anyone happen to know an easy way to force just one queue into using only PCL2 formatting?
I dug around in the interface script and in model.orig but didn't see anything immmediately... (0 Replies)
Discussion started by: Eronysis
0 Replies
9. UNIX for Dummies Questions & Answers
I have a file that contain printer escape codes and text. How can I place the image on the top of each page in that file and print that text file out with the image in Unix.
Thank you. (0 Replies)
Discussion started by: caol
0 Replies
10. UNIX Desktop Questions & Answers
hi all,
i would like to know if there are any tools in unix (sun solaris 8) to convert PDF files to PCL format (i.e, .prn files)
i want to convert around 3000 files (in a batch) to PCL format files. can anyone help me out with this.
regards,
manojram (1 Reply)
Discussion started by: manojram
1 Replies
HIGHLIGHT_STRING(3) 1 HIGHLIGHT_STRING(3)
highlight_string - Syntax highlighting of a string
SYNOPSIS
mixed highlight_string (string $str, [bool $return = false])
DESCRIPTION
Outputs or returns html markup for a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax
highlighter for PHP.
PARAMETERS
o $str
- The PHP code to be highlighted. This should include the opening tag.
o $return
- Set this parameter to TRUE to make this function return the highlighted code.
RETURN VALUES
If $return is set to TRUE, returns the highlighted code as a string instead of printing it out. Otherwise, it will return TRUE on success,
FALSE on failure.
EXAMPLES
Example #1
highlight_string(3) example
<?php
highlight_string('<?php phpinfo(); ?>');
?>
The above example will output (in PHP 4):
<code><font color="#000000">
<font color="#0000BB"><?php phpinfo</font><font color="#007700">(); </font><font color="#0000BB">?></font>
</font>
</code>
The above example will output (in PHP 5):
<code><span style="color: #000000">
<span style="color: #0000BB"><?php phpinfo</span><span style="color: #007700">(); </span><span style="color: #0000BB">?></span>
</span>
</code>
NOTES
Note
When the $return parameter is used, this function uses internal output buffering so it cannot be used inside an ob_start(3) callback
function.
The HTML markup generated is subject to change.
SEE ALSO
highlight_file(3), Highlighting INI directives.
PHP Documentation Group HIGHLIGHT_STRING(3)