Syntax highlighting for lektor
If you write technical articles about programming or linux systems its very usefull to have a syntax highlighter. For lektor where is a plugin you can use: the [lektor-markdown-highlighter](https://github.com/lektor/lektor-markdown-highlighter) (thanks Armin).
So how to install and configure it? If you have installed lektor you can use this command to enable the highlighter:
$ lektor plugins add markdown-highlighter
Now we create a configuration in configs/ directory. Attention: a fresh lektor installation didn't has this directory so you have to create it by your own. After this create and edit the file markdown-highlighter.ini:
[pygments]
style = colorful
Ok. Mow you ca use syntax highlighting. Put [lexer name] at he start of your code. Here is an example:
```python
import logging
log = logging.get_logger()
for item in items
print 'value of item is %s' % (item)
print "hu"
log.debug(item)
log.debug()
```
And the result:
import logging
log = logging.get_logger()
for item in items
print 'value of item is %s' % (item)
print "hu"
log.debug(item)
log.debug()