[Github-comments] [geany/geany-plugins] addons: show color tip and start Color Chooser with double click (#664)

LarsGit223 notifications at xxxxx
Tue Jan 16 20:06:51 UTC 2018


LarsGit223 commented on this pull request.



> +	if (end > max)
+	{
+		end = max;
+	}
+
+	/* Get text in range and examine it */
+	subtext = sci_get_contents_range(doc->editor->sci, start, end);
+	if (subtext != NULL)
+	{
+		pos = pos - start;
+		color = contains_color_value(subtext, pos, 1);
+		g_free(subtext);
+	}
+
+	return color;
+}

Thanks, used your code snippet.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/664#discussion_r161872107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180116/16f89701/attachment.html>


More information about the Github-comments mailing list