Skip to content
forked from koba-yu/RedLight

Simple syntax highlighted html generator for Red

License

Notifications You must be signed in to change notification settings

jrell26/RedLight

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedLight

Simple syntax highlighted html generator for Red.
Highlighting is done by css, and sample css files in the 'css' folder.

Example

example image

Usage

The code below introduces to-html function.

do %red-light.red

to-html generates string of pre and code tag data include the argument code.

to-html {test: 1
print test
; console shows 1}

without /header refinement, you need to set css reference on the html manually.

Also source file and url can be used.

to-html %check-folder-or-file.red
to-html https://raw.githubusercontent.com/koba-yu/RedStudy/master/Samples/check-folder-or-file.red

With /header refinement, the html would contain header tag and css reference that was specified by css word.
(Currently it expects the css file exists on the same folder of the html.)

to-html/header {test: 1
print test
; console shows 1} 'monokai_extended ; css name to be used.

About

Simple syntax highlighted html generator for Red

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Red 80.5%
  • CSS 19.5%