Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/draegtun/PrettifyRebol
Rebol syntax highlighting using Google Code Prettify
https://github.com/draegtun/PrettifyRebol
Last synced: 15 days ago
JSON representation
Rebol syntax highlighting using Google Code Prettify
- Host: GitHub
- URL: https://github.com/draegtun/PrettifyRebol
- Owner: draegtun
- License: artistic-2.0
- Created: 2013-05-08T17:45:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-06T21:58:32.000Z (almost 6 years ago)
- Last Synced: 2024-08-01T15:10:34.310Z (3 months ago)
- Language: Rebol
- Homepage: draegtun.github.io/PrettifyRebol
- Size: 139 KB
- Stars: 5
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: License
Awesome Lists containing this project
README
# Rebol grammar for Google Code Prettifer
## History
* Started with a hack on lang-lisp.js syntax file
* Now completely re-hacked from bottom up
* All syntax grammar (in lang-rebol.js) built from Rebol scripts
## Contributors
* Rebol3 used to build lang-rebol.js (GCP grammar) & HTML files (see build/)
* So do not amend lang-rebol.js or any of the HTML files directly! **Important**
* See build/ReadMe.txt on how to update and rebuild JS & HTML files
## Rules
* General rule... KISS :)
* All datatypes! (defined in build/GCP-datatypes.r) marked as LITERAL (with some exceptions)
* All keywords (Rebol functions - defined in build/GCP-keywords.r) marked as KEYWORD (with some exceptions)
* Rest of Rebol grammar defined in build/template-lang-rebol.js
* Some naive Regex used to cover some syntax rules
* All seems to work well for highlighting Rebol code in web pages (see test-?.html for working examples. See not-working.html for known issues)
* See build/Rules.txt for more detailed rules that were applied
## What next?
- [x] Let Rebol community have a look
- [x] Then send test patch back to GCP
- [] And if that all goes well then pester Stackoverflow to update their GCP :)
## What to see?
* To test - clone repo and open the test.html files in web browser.
* Or for live test examples: http://draegtun.github.io/PrettifyRebol
## Misc
* Google Code Prettify - https://github.com/google/code-prettify