brick-skylighting: Show syntax-highlighted text in your Brick UI

[ bsd3, graphics, library ] [ Propose Tags ] [ Report a vulnerability ]

This package provides a module to use Skylighting to perform syntax highlighting and display the results in Brick-based interfaces.


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
demos

Build demonstration programs

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.2, 0.3, 1.0
Change log CHANGELOG.md
Dependencies base (<=5), brick (>=1.0), brick-skylighting, containers, mtl, skylighting-core (>=0.7), text, vty (>=5.23.1) [details]
License BSD-3-Clause
Copyright Jonathan Daugherty 2018
Author Jonathan Daugherty
Maintainer cygnus@foobox.com
Category Graphics
Home page https://github.com/jtdaugherty/brick-skylighting/
Bug tracker https://github.com/jtdaugherty/brick-skylighting/issues
Source repo head: git clone git://github.com/jtdaugherty/brick-skylighting.git
Uploaded by JonathanDaugherty at 2022-08-08T22:38:31Z
Distributions NixOS:1.0
Reverse Dependencies 1 direct, 1 indirect [details]
Executables brick-skylighting-demo
Downloads 4389 total (36 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-08-08 [all 1 reports]

Readme for brick-skylighting-1.0

[back to package description]

brick-skylighting

This package extends the brick library with syntax highlighting support using the Skylighting library.

See the Haddock documentation for Brick.Widgets.Skylighting for API details, and see the demonstration program in programs for a complete working example.

Note: this library requires its users to provide syntax highlighting definitions. For that, there are two choices:

  • Obtain XML specifications from e.g. the skylighting-core sources, then bundle these with your program files. Those files are GPL-licensed, so this option is preferable when you want to ship these GPL-licensed files with your program without the GPL infecting the license of your application.

  • Use the compiled-in syntax specifications in the skylighting package. This option is preferable if you are okay with a GPL-licensed dependency (i.e. if your application is also GPL'd) and you especially want to avoid having to bundle the XML files with your application or avoid the runtime loading of such files.