- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 25 Jun 2014 14:37:55 -0700
- To: Christoph Päper <christoph.paeper@crissov.de>
- Cc: www-style list <www-style@w3.org>
On Wed, Jun 25, 2014 at 5:41 AM, Christoph Päper <christoph.paeper@crissov.de> wrote: > I thought about this and apparently what I really need – and Selectors doesn’t do – is a generic syntax description language to map from marked up text (not XML or HTML) to the DOM. That might be true, and it's definitely not relevant to Selectors. > SGML could probably do such a thing for most languages, e.g. <http://www.xml.com/2004/03/03/examples/wiki.sgm> for a random wiki markup language. Other languages like XSD, DSD, Schematron and Relax NG are tailored and limited to XML, as far as I know. > > Every text editor with syntax highlighting needs a language like that if it doesn’t hard-code regular expressions. The difference may be that there’s a closed set of styleable, semantic elements that matches are mapped to. Most text editors just use regexps, but there might be some that fit your needs. ~TJ
Received on Wednesday, 25 June 2014 21:38:43 UTC