Menu

background color missing in OSX

Help
2015-12-09
2016-01-14
  • Chetan Sachdev

    Chetan Sachdev - 2015-12-09

    I am using highlight v 3.23. When trying to highlight, I don't get the Canvas Color. Below is the command, which I am using:

    pbpaste | highlight -O rtf --line-numbers --syntax javascript --font 'Bitstream Vera Sans Mono' --style zellner --font-size 12 -W -J 80 -j 3 | pbcopy
    

    I referred to the below gist:
    https://gist.github.com/jimbojsb/1630790

    Someone else is also facing similar issue. Please suggest, what I am doing wrong.

     
  • André Simon

    André Simon - 2015-12-09

    Hi, the canvas color works with LibreOffice/OpenOffice and MS Word. Some RTF readers like Wordpad or Google Docs ignore this setting. Possibly Keynote also has problems, maybe it also accepts HTML or SVG as input? In case you have a RTF file from another generator which is interpreted correctly, you might attach it here.

     
  • Chetan Sachdev

    Chetan Sachdev - 2015-12-22

    Tried in various editors, but background color is still not present. I tried to change with various themes as well. No idea why it is not working.

    pbpaste | highlight -O rtf --line-numbers --syntax javascript --font 'Bitstream Vera Sans Mono' --style zellner --font-size 12 -W -J 80 -j 3 | pbcopy -prefer rtf
    

    Tried to add -prefer rtf but still there is no success.
    Highlight version 3.23

     
  • André Simon

    André Simon - 2015-12-23

    It is possible to set the page colour in Word. Maybe this is better supported than a coloured paragraph. This needs some tinkering since RTF is not well documented.

     
  • André Simon

    André Simon - 2016-01-14

    The new release 3.26 includes --page-color which adds more attributes to define the page color instead of a paragraph background only. This works with MS Office, possibly also with Mac OS applications.

     

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.