Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP: wrong style on extra highlighted lines #12

Open
Blaimi opened this issue Apr 16, 2014 · 2 comments
Open

PHP: wrong style on extra highlighted lines #12

Blaimi opened this issue Apr 16, 2014 · 2 comments

Comments

@Blaimi
Copy link

Blaimi commented Apr 16, 2014

example:

<?php
require_once 'geshi.php';
$content = <<<CODE
01st line
02nd line
03rd line
04th line
05th line
06th line
07th line
08th line
09th line
10th line
11th line
12th line
CODE;

$geshi = new GeSHi($content, 'text');
$geshi->highlight_lines_extra(1, 'background-color:red');

$geshi->highlight_lines_extra(3, 'background-color:red');
$geshi->highlight_lines_extra(4, 'background-color:red');

$geshi->highlight_lines_extra(6, 'background-color:red');
$geshi->highlight_lines_extra(7, 'background-color:red');
$geshi->highlight_lines_extra(8, 'background-color:red');

$geshi->highlight_lines_extra(10, 'background-color:red');

echo $geshi->parse_code();

solution:
add '+1' in lines 4007 and 4055 (geshi.php 1.0.8.11)

@Blaimi
Copy link
Author

Blaimi commented Apr 16, 2014

ah, and BTW: The second parameter is not documented …

@cweiske cweiske changed the title wrong style on extra highlighted lines PHP: wrong style on extra highlighted lines Mar 15, 2017
@cweiske
Copy link
Member

cweiske commented Mar 30, 2017

I'd be grateful if you could provide a patch / pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants