QScintilla/MarkupProviders/MarkupBase.py

changeset 5398
1f4509cf8f35
parent 5394
b2c6179184f6
child 5402
ce21a78a5fcf
equal deleted inserted replaced
5397:fee5485e67f4 5398:1f4509cf8f35
21 def __init__(self): 21 def __init__(self):
22 """ 22 """
23 Constructor 23 Constructor
24 """ 24 """
25 pass 25 pass
26
27 def kind(self):
28 """
29 Public method to get the markup kind.
30
31 @return markup kind all lowercased
32 @rtype str
33 """
34 return "none"
26 35
27 def hasBold(self): 36 def hasBold(self):
28 """ 37 """
29 Public method to indicate the availability of bold markup. 38 Public method to indicate the availability of bold markup.
30 39
49 @return flag indicating the availability of strikethrough markup 58 @return flag indicating the availability of strikethrough markup
50 @rtype bool 59 @rtype bool
51 """ 60 """
52 return False 61 return False
53 62
63 def headerLevels(self):
64 """
65 Public method to determine the available header levels.
66
67 @return supported header levels
68 @rtype int
69 """
70 return 0
71
54 def bold(self, editor): 72 def bold(self, editor):
55 """ 73 """
56 Public method to generate bold text. 74 Public method to generate bold text.
57 75
58 @param editor reference to the editor to work on 76 @param editor reference to the editor to work on
75 93
76 @param editor reference to the editor to work on 94 @param editor reference to the editor to work on
77 @type Editor 95 @type Editor
78 """ 96 """
79 pass 97 pass
98
99 def header(self, editor, level):
100 """
101 Public method to generate a header.
102
103 @param editor reference to the editor to work on
104 @type Editor
105 @param level header level
106 @type int
107 """
108 pass

eric ide

mercurial