def ShowFunctionInfo(self, view, tokens, func, argumentCount):
		funcName = func.data.identifier
		currentParameter = None
		if len(tokens) > 2 and tokens[-1].type == lex.OP_ASSIGN and tokens[-2].type == lex.IDENTIFIER:
			currentParameter = tokens[-2].value.upper()
		paramIndex = 0
		funcParameters = []
		for param in func.data.parameters:
			paramName = param.identifier
			paramType = param.typeIdentifier
			if param.array:
				paramType = "%s[]" % paramType
			paramContent = None
			if param.expression:
				paramDefaultValue = sem.GetLiteral(param.expression, True)
				paramContent = "%s %s = %s" % (paramType, paramName, paramDefaultValue)
			else:
				paramContent = "%s %s" % (paramType, paramName)
			if currentParameter:
				if currentParameter == paramName.upper():
					paramContent = "<b>%s</b>" % paramContent
			else:
				if paramIndex == argumentCount:
					paramContent = "<b>%s</b>" % paramContent
				paramIndex += 1
			funcParameters.append(paramContent)
		settings = SublimePapyrus.GetSettings()
		backgroundColor = settings.get("tooltip_background_color", "#393939")
		bodyTextColor = settings.get("tooltip_body_text_color", "#747369")
		bodyFontSize = settings.get("tooltip_font_size", "12")
		boldTextColor = settings.get("tooltip_bold_text_color", "#ffffff")
		headingTextColor = settings.get("tooltip_heading_text_color", "#bfbfbf")
		headingFontSize = settings.get("tooltip_heading_font_size", "14")
		css = """<style>
html {
	background-color: %s;
}

body {
    font-size: %spx;
    color: %s;
}

b {
    color: %s;
}

h1 {
    color: %s;
    font-size: %spx;
}
</style>""" % (backgroundColor, bodyFontSize, bodyTextColor, boldTextColor, headingTextColor, headingFontSize)
		content = "%s<h1>%s</h1>%s" % (css, funcName, "<br>".join(funcParameters))
		if view.is_popup_visible():
			view.update_popup(content)
		else:
			view.show_popup(content, flags=sublime.COOPERATE_WITH_AUTO_COMPLETE, max_width=int(settings.get("tooltip_max_width", 600)), max_height=int(settings.get("tooltip_max_height", 300)))
dataset/ETHPy150Open Kapiainen/SublimePapyrus/Source/Modules/Skyrim/Plugin.py/EventListener.ShowFunctionInfo/original