@@ -138,7 +138,7 @@ def __init__(self, master, **kwargs):
138
138
default_text = constants .default_md_string
139
139
self .text_area .insert (0.0 , default_text )
140
140
# Applies markdown formatting to default file.
141
- self .check_markdown (start = "1.0" , end = END )
141
+ self .check_markdown_highlighting (start = "1.0" , end = END )
142
142
self .text_area .focus_set ()
143
143
144
144
# Create right click menu layout for the editor.
@@ -254,7 +254,7 @@ def open_md_file(self):
254
254
open_filename_contents = stream .read ()
255
255
self .text_area .delete (1.0 , END )
256
256
self .text_area .insert (END , open_filename_contents )
257
- self .check_markdown (start = "1.0" , end = END )
257
+ self .check_markdown_highlighting (start = "1.0" , end = END )
258
258
constants .cur_file = Path (open_filename_md )
259
259
except :
260
260
mbox .showerror (title = "Error" , message = f"Error Opening Selected File\n \n The file you selected: { open_filename_md } can not be opened!" )
@@ -333,7 +333,7 @@ def on_input_change(self, event):
333
333
self .preview_html .insert (END , html )
334
334
self .preview_area .load_html (html )
335
335
self .preview_area .add_css (self .css )
336
- self .check_markdown (start = "1.0" , end = END )
336
+ self .check_markdown_highlighting (start = "1.0" , end = END )
337
337
self .text_area .edit_modified (0 ) # resets the text widget to generate another event when another change occours
338
338
339
339
def load_style (self , stylename ):
@@ -374,7 +374,7 @@ def load_style(self, stylename):
374
374
self .preview_area .add_css (self .css )
375
375
return self .syntax_highlighting_tags
376
376
377
- def check_markdown (self , start = 'insert linestart' , end = 'insert lineend' ):
377
+ def check_markdown_highlighting (self , start = 'insert linestart' , end = 'insert lineend' ):
378
378
"""Formats editor content using the Pygments style."""
379
379
self .data = self .text_area .get (start , end )
380
380
while self .data and self .data [0 ] == '\n ' :
0 commit comments