Skip to content

morloc-project/pygmentize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

morloclexer

A Pygments lexer for the Morloc language.

Installation

pip install morloclexer

Usage

Once installed, Pygments will automatically detect .loc files:

pygmentize -l morloc example.loc

Or use it in Python:

from pygments import highlight
from pygments.formatters import HtmlFormatter
from morloclexer.lexer import MorlocLexer

code = 'module main (*)\nimport math (sqrt)\n'
html = highlight(code, MorlocLexer(), HtmlFormatter())

About

Morloc pygmentize files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages