QScintilla/MarkupProviders/MarkupBase.py

changeset 5398
1f4509cf8f35
parent 5394
b2c6179184f6
child 5402
ce21a78a5fcf
--- a/QScintilla/MarkupProviders/MarkupBase.py	Mon Jan 02 12:49:28 2017 +0100
+++ b/QScintilla/MarkupProviders/MarkupBase.py	Mon Jan 02 20:13:40 2017 +0100
@@ -24,6 +24,15 @@
         """
         pass
     
+    def kind(self):
+        """
+        Public method to get the markup kind.
+        
+        @return markup kind all lowercased
+        @rtype str
+        """
+        return "none"
+    
     def hasBold(self):
         """
         Public method to indicate the availability of bold markup.
@@ -51,6 +60,15 @@
         """
         return False
     
+    def headerLevels(self):
+        """
+        Public method to determine the available header levels.
+        
+        @return supported header levels
+        @rtype int
+        """
+        return 0
+    
     def bold(self, editor):
         """
         Public method to generate bold text.
@@ -77,3 +95,14 @@
         @type Editor
         """
         pass
+    
+    def header(self, editor, level):
+        """
+        Public method to generate a header.
+        
+        @param editor reference to the editor to work on
+        @type Editor
+        @param level header level
+        @type int
+        """
+        pass

eric ide

mercurial