(self)
Check for code hilite extension to get its config.
Check for code hilite extension to get its config.
Check for code hilite extension to get its config .
def get_hl_settings(self):
        """Check for code hilite extension to get its config."""

        if not self.checked_hl_settings:
            self.checked_hl_settings = True
            self.highlight_code = self.config['highlight_code']

            config = hl.get_hl_settings(self.markdown)
            if 'extend_pygments_lang' not in config:
                self.css_class = config['css_class']
            else:
                self.css_class = self.config['css_class']

            self.extend_pygments_lang = config.get('extend_pygments_lang', None)
            self.guess_lang = config['guess_lang']
            self.pygments_style = config['pygments_style']
            self.use_pygments = config['use_pygments']
            self.noclasses = config['noclasses']
            self.linenums = config['linenums']
            self.sublime_hl = config['sublime_hl']
            self.sublime_wrap = config['sublime_wrap']
def get_hl_settings ( self ) : if not self . checked_hl_settings : self . checked_hl_settings = True self . highlight_code = self . config [ 'highlight_code' ] config = hl . get_hl_settings ( self . markdown ) if 'extend_pygments_lang' not in config : self . css_class = config [ 'css_class' ] else : self . css_class = self . config [ 'css_class' ] self . extend_pygments_lang = config . get ( 'extend_pygments_lang' , None ) self . guess_lang = config [ 'guess_lang' ] self . pygments_style = config [ 'pygments_style' ] self . use_pygments = config [ 'use_pygments' ] self . noclasses = config [ 'noclasses' ] self . linenums = config [ 'linenums' ] self . sublime_hl = config [ 'sublime_hl' ] self . sublime_wrap = config [ 'sublime_wrap' ]