manuskript/manuskript/ui_qt/editors/MDFunctions.py
TheJackiMonster 59662921a7
Started adding UI python code and renamed Qt files for compatibility
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2021-05-16 20:23:10 +02:00

21 lines
457 B
Python

#!/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__)
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)
# FIXME