Code Monkey home page Code Monkey logo

html5-el's Introduction

html5-el

This is an umbrella repository for various projects of mine involving working with HTML5 in Emacs Lisp.

Edit XHTML5 documents with nxml-mode

This provides the ability to use nxml-mode to edit XHTML5 documents with RELAX NG validation.

How to use

First, you'll need to fetch the RELAX NG schema from the WHAT Task Force subversion repository; a simple make relaxng in this directory should do the trick.

Next, you'll need to add this directory to your load-path. Let's assume you've placed it in ~/code/html5-el/.

(add-to-list 'load-path "~/code/html5-el/")

Finally, wire this stuff into nxml-mode like so, altering the path to schemas.xml appropriately.

(eval-after-load "rng-loc"
  '(add-to-list 'rng-schema-locating-files "~/code/html5-el/schemas.xml"))

(require 'whattf-dt)

Experimental Emacs Lisp HTML5 tokenizer (html5-tok.el)

This is an implementation of the HTML5 tokenizer in Emacs Lisp. The API is relatively simple: with point at the location in a buffer where you'd like to start tokenizing, call html5-tok-forward to move forward one token. The token moved over is returned.

Despite the fact that all the tokenizer states are implemented, this is very early on in its life and the interface is likely to change significantly.

html5-el's People

Watchers

 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.