Possibly this can be achieved with a plug-in script for HTML output, using JavaScript and/or jquery to manipulate CSS. But highlight only does syntax highlighting for a complete file, not sections.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible using a plug-in, because I need this in rtf format. I want the entire theme with a section, which looks like highlighted row, like in a editor you double click on a row and it gets a special background color.
I have another issue, I want to maintain the background color as well, but I am not getting background color, here is what I am trying:
highlight -O rtf --line-numbers --syntax js --font Inconsolata --style andre --font-size 24 -W -J 80 -j 3
Could you please suggest what I am doing wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually there was a markdown feature removed in 2010 to reduce code bloat ;) This was not replaced by a plugin yet, and it would be a bit work as the line numbers need to be transferred somehow.
Please check the canvas setting in your theme file to change the background.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The release 3.26 includes a plugin called mark_lines.lua, which does this for HTML. More output formats may follow. Specify the line numbers like this:
Is it possible to highlight a row using highlight?
You mean a line of text defined by line number? Currently there is no such feature.
Yes, I want to highlight one specific row or a set of rows e.g. line number 3-10 and it highlights those.
Possibly this can be achieved with a plug-in script for HTML output, using JavaScript and/or jquery to manipulate CSS. But highlight only does syntax highlighting for a complete file, not sections.
Is it possible using a plug-in, because I need this in rtf format. I want the entire theme with a section, which looks like highlighted row, like in a editor you double click on a row and it gets a special background color.
I have another issue, I want to maintain the background color as well, but I am not getting background color, here is what I am trying:
highlight -O rtf --line-numbers --syntax js --font Inconsolata --style andre --font-size 24 -W -J 80 -j 3
Could you please suggest what I am doing wrong?
Actually there was a markdown feature removed in 2010 to reduce code bloat ;) This was not replaced by a plugin yet, and it would be a bit work as the line numbers need to be transferred somehow.
Please check the canvas setting in your theme file to change the background.
The release 2.16 of 2010 included line highlighting (--mark-line):
http://andre-simon.de/zip/highlight-2.16.tar.bz2
Which RTF reader are you using? Is HTML output correct?
The release 3.26 includes a plugin called mark_lines.lua, which does this for HTML. More output formats may follow. Specify the line numbers like this:
This plug-in outputs RTF in release 3.27.