manuskript/manuskript/ui/editors/MDFunctions.py

21 lines
457 B
Python
Raw Normal View History

2016-03-30 22:36:25 +13:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from PyQt5.QtCore import QRegExp
from PyQt5.QtGui import QTextCursor
import logging
LOGGER = logging.getLogger(__name__)
2016-03-30 22:36:25 +13:00
def MDFormatSelection(editor, style):
"""
Formats the current selection of ``editor`` in the format given by ``style``,
style being:
0: bold
1: italic
2: code
"""
LOGGER.error("Formatting: %s (Not implemented!)", style)
2016-03-30 22:36:25 +13:00
# FIXME