Learn R Programming

highlight (version 0.3.1)

css.parser: Minimal CSS parser

Description

Minimal CSS (Cascading Style Sheets) parser.

Usage

css.parser(file, lines = readLines(file))

Arguments

file
file to parse
lines
lines of text to parse, read from file by default

Value

  • A list with one element per style class declaration. Each element is a list which has one element per CSS setting (color, background, ...)

References

http://www.w3schools.com/css/ http://www.w3schools.com/css/css_colors.asp

Examples

Run this code
cssfile <- system.file( "stylesheet", "default.css", package="highlight")
css.parser( cssfile )

Run the code above in your browser using DataLab