Skip to content

krial057/maniaplanet-style-js-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ManiaPlanet Style parser

JavaScript port of ManiaLib's PHP style parser.

It supports : $i, $o, $s, $w, $m, $g, $n, $<, $>, $l (for links like $l[http://magnetik.org]magnetik$l) and colors ($f20 for instance).

Live demo : http://magnetik.github.com/maniaplanet-style-js-parser/

##Build

###Requirements

As compiled file are JavaScript, you can use it with any JavaScript interpreter. It's tested with latest node.js.

###Installation

A CakeFile is used in order to generate all required files.

Just type cake build and the file bin/mp-style-parser.js will be generated. You can use it in any project.

##Usage

In your javascript application just do MPStyle.Parser.toHTML('$o foo $i bar');

In web projects : <script src="http://magnetik.github.com/maniaplanet-style-js-parser/bin/mp-style-parser.js"></script>

##License

Licensed under the GNU Lesser General Public License Version 3 (LGPLV3), copyright Baptiste Lafontaine 2012.

About

CoffeeScript (JavaScript) maniaplanet style parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published