You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- internal sorting function, sorts first by hue, then luminosity, then value
@@ -832,7 +811,7 @@ function string.tocolor(self)
832
811
localstrTable= {}
833
812
localpart1= {}
834
813
localpart2= {}
835
-
self:gsub(".", function(c)
814
+
_=self:gsub(".", function(c)
836
815
table.insert(strTable, c)
837
816
end)
838
817
forindex, valueinipairs(strTable) do
@@ -1104,29 +1083,29 @@ end
1104
1083
-- </thead>
1105
1084
-- <tbody>
1106
1085
-- <tr>
1107
-
-- <td class="tg-odd">format</td>
1108
-
-- <td class="tg-odd">What format to return the text as? 'h' for html, 'c' for cecho, 'a' for ansi, 'd' for decho, and 'x' for hecho</td>
1109
-
-- <td class="tg-odd">"d"</td>
1086
+
-- <td class="tg-1">format</td>
1087
+
-- <td class="tg-1">What format to return the text as? 'h' for html, 'c' for cecho, 'a' for ansi, 'd' for decho, and 'x' for hecho</td>
1088
+
-- <td class="tg-1">"d"</td>
1110
1089
-- </tr>
1111
1090
-- <tr>
1112
-
-- <td class="tg-even">win</td>
1113
-
-- <td class="tg-even">what console/window to dump the buffer of?</td>
1114
-
-- <td class="tg-even">"main"</td>
1091
+
-- <td class="tg-2">win</td>
1092
+
-- <td class="tg-2">what console/window to dump the buffer of?</td>
1093
+
-- <td class="tg-2">"main"</td>
1115
1094
-- </tr>
1116
1095
-- <tr>
1117
-
-- <td class="tg-odd">start_line</td>
1118
-
-- <td class="tg-odd">What line to start dumping the buffer from?</td>
1119
-
-- <td class="tg-odd">0</td>
1096
+
-- <td class="tg-1">start_line</td>
1097
+
-- <td class="tg-1">What line to start dumping the buffer from?</td>
1098
+
-- <td class="tg-1">0</td>
1120
1099
-- </tr>
1121
1100
-- <tr>
1122
-
-- <td class="tg-even">end_line</td>
1123
-
-- <td class="tg-even">What line to stop dumping the buffer on?</td>
1124
-
-- <td class="tg-even">Last line of the console</td>
1101
+
-- <td class="tg-2">end_line</td>
1102
+
-- <td class="tg-2">What line to stop dumping the buffer on?</td>
1103
+
-- <td class="tg-2">Last line of the console</td>
1125
1104
-- </tr>
1126
1105
-- <tr>
1127
-
-- <td class="tg-odd">includeHtmlWrapper</td>
1128
-
-- <td class="tg-odd">If the format is html, should it include the front and back portions required to make it a functioning html page?</td>
1129
-
-- <td class="tg-odd">true</td>
1106
+
-- <td class="tg-1">includeHtmlWrapper</td>
1107
+
-- <td class="tg-1">If the format is html, should it include the front and back portions required to make it a functioning html page?</td>
1108
+
-- <td class="tg-1">true</td>
1130
1109
-- </tr>
1131
1110
-- </tbody>
1132
1111
-- </table>
@@ -1146,49 +1125,49 @@ end
1146
1125
-- </thead>
1147
1126
-- <tbody>
1148
1127
-- <tr>
1149
-
-- <td class="tg-odd">cols</td>
1150
-
-- <td class="tg-odd">Number of columsn wide to display the colors in</td>
1151
-
-- <td class="tg-odd">4</td>
1128
+
-- <td class="tg-1">cols</td>
1129
+
-- <td class="tg-1">Number of columsn wide to display the colors in</td>
1130
+
-- <td class="tg-1">4</td>
1152
1131
-- </tr>
1153
1132
-- <tr>
1154
-
-- <td class="tg-even">search</td>
1155
-
-- <td class="tg-even">If not the empty string, will check colors against string.find using this property.<br>IE if set to "blue" only colors which include the word 'blue' would be listed</td>
1156
-
-- <td class="tg-even">""</td>
1133
+
-- <td class="tg-2">search</td>
1134
+
-- <td class="tg-2">If not the empty string, will check colors against string.find using this property.<br>IE if set to "blue" only colors which include the word 'blue' would be listed</td>
1135
+
-- <td class="tg-2">""</td>
1157
1136
-- </tr>
1158
1137
-- <tr>
1159
-
-- <td class="tg-odd">sort</td>
1160
-
-- <td class="tg-odd">If true, sorts alphabetically. Otherwise sorts based on the color value</td>
1161
-
-- <td class="tg-odd">false</td>
1138
+
-- <td class="tg-1">sort</td>
1139
+
-- <td class="tg-1">If true, sorts alphabetically. Otherwise sorts based on the color value</td>
1140
+
-- <td class="tg-1">false</td>
1162
1141
-- </tr>
1163
1142
-- <tr>
1164
-
-- <td class="tg-even">echoOnly</td>
1165
-
-- <td class="tg-even">If true, colors will not be clickable links</td>
1166
-
-- <td class="tg-even">false</td>
1143
+
-- <td class="tg-2">echoOnly</td>
1144
+
-- <td class="tg-2">If true, colors will not be clickable links</td>
1145
+
-- <td class="tg-2">false</td>
1167
1146
-- </tr>
1168
1147
-- <tr>
1169
-
-- <td class="tg-odd">window</td>
1170
-
-- <td class="tg-odd">What window/console to echo the colors out to.</td>
1171
-
-- <td class="tg-odd">"main"</td>
1148
+
-- <td class="tg-1">window</td>
1149
+
-- <td class="tg-1">What window/console to echo the colors out to.</td>
1150
+
-- <td class="tg-1">"main"</td>
1172
1151
-- </tr>
1173
1152
-- <tr>
1174
-
-- <td class="tg-even">removeDupes</td>
1175
-
-- <td class="tg-even">If true, will remove snake_case entries and 'gray' in favor of 'grey'</td>
1176
-
-- <td class="tg-even">true</td>
1153
+
-- <td class="tg-2">removeDupes</td>
1154
+
-- <td class="tg-2">If true, will remove snake_case entries and 'gray' in favor of 'grey'</td>
1155
+
-- <td class="tg-2">true</td>
1177
1156
-- </tr>
1178
1157
-- <tr>
1179
-
-- <td class="tg-odd">columnSort</td>
1180
-
-- <td class="tg-odd">If true, will print top-to-bottom, then left-to-right. false is like showColors</td>
1181
-
-- <td class="tg-odd">true</td>
1158
+
-- <td class="tg-1">columnSort</td>
1159
+
-- <td class="tg-1">If true, will print top-to-bottom, then left-to-right. false is like showColors</td>
1160
+
-- <td class="tg-1">true</td>
1182
1161
-- </tr>
1183
1162
-- <tr>
1184
-
-- <td class="tg-even">justText</td>
1185
-
-- <td class="tg-even">If true, will echo the text in the color and leave the background black.<br>If false, the background will be the colour(like showColors).</td>
1186
-
-- <td class="tg-even">false</td>
1163
+
-- <td class="tg-2">justText</td>
1164
+
-- <td class="tg-2">If true, will echo the text in the color and leave the background black.<br>If false, the background will be the colour(like showColors).</td>
1165
+
-- <td class="tg-2">false</td>
1187
1166
-- </tr>
1188
1167
-- <tr>
1189
-
-- <td class="tg-odd">color_table</td>
1190
-
-- <td class="tg-odd">Table of colors to display. If you provide your own table, it must be in the same format as Mudlet's own color_table</td>
1191
-
-- <td class="tg-odd">color_table</td>
1168
+
-- <td class="tg-1">color_table</td>
1169
+
-- <td class="tg-1">Table of colors to display. If you provide your own table, it must be in the same format as Mudlet's own color_table</td>
0 commit comments