def show_color_info(self, update=False):
        """Show the color under the cursor."""

        color, alpha, alpha_dec = self.get_cursor_color()

        if color is not None:
            if alpha is not None:
                color += alpha

            html = []

            html.append(
                self.format_info(color.lower(), alpha_dec)
            )

            if update:
                md = mdpopups.md2html(self.view, ''.join(html))
                mdpopups.update_popup(
                    self.view,
                    '<div class="color-helper content">%s</div>' % md,
                    css=util.ADD_CSS
                )
            else:
                self.view.settings().set('color_helper.popup_active', True)
                self.view.settings().set('color_helper.popup_auto', self.auto)
                md = mdpopups.md2html(self.view, ''.join(html))
                mdpopups.show_popup(
                    self.view, '<div class="color-helper content">%s</div>' % md,
                    css=util.ADD_CSS, location=-1, max_width=600, max_height=350,
                    on_navigate=self.on_navigate,
                    on_hide=self.on_hide,
                    flags=sublime.COOPERATE_WITH_AUTO_COMPLETE
                )
        elif update:
            self.view.hide_popup()
dataset/ETHPy150Open facelessuser/ColorHelper/color_helper.py/ColorHelperCommand.show_color_info/original