Menu

Highlight a row or a set of row using highlight

Help
2015-11-27
2016-01-21
  • Chetan Sachdev

    Chetan Sachdev - 2015-11-27

    Is it possible to highlight a row using highlight?

     
  • André Simon

    André Simon - 2015-11-27

    You mean a line of text defined by line number? Currently there is no such feature.

     
  • Chetan Sachdev

    Chetan Sachdev - 2015-11-27

    Yes, I want to highlight one specific row or a set of rows e.g. line number 3-10 and it highlights those.

     
  • André Simon

    André Simon - 2015-11-27

    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.

     
  • Chetan Sachdev

    Chetan Sachdev - 2015-11-27

    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?

     
  • André Simon

    André Simon - 2015-11-27

    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.

     
  • Chetan Sachdev

    Chetan Sachdev - 2015-11-27
    Post awaiting moderation.
  • André Simon

    André Simon - 2015-11-27

    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?

     
  • André Simon

    André Simon - 2016-01-14

    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:

    highlight --plug-in=plugins/mark_lines.lua --plug-in-param='2,4,12'  -I gtk_sample.cpp  -l
    
     
  • André Simon

    André Simon - 2016-01-21

    This plug-in outputs RTF in release 3.27.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.