Coder Social home page Coder Social logo

draegtun / prettifyrebol Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 6.0 142 KB

Rebol syntax highlighting using Google Code Prettify

Home Page: draegtun.github.io/PrettifyRebol

License: Artistic License 2.0

HTML 35.38% Rebol 46.53% Shell 0.48% JavaScript 17.60%

prettifyrebol's Introduction

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?

  • Let Rebol community have a look

  • Then send test patch back to GCP

  • [] And if that all goes well then pester Stackoverflow to update their GCP :)

What to see?

Misc

prettifyrebol's People

Contributors

draegtun avatar rgchris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.