···11+--[[
22+ Jericho's system.print() extension -- https://github.com/Jericho1060
33+ Display content in lua chat channel with colors
44+]]
55+system.printColor = function(message, color) system.print('<span style="color:' .. color .. ';">' .. message .. '</span>') end
66+system.printPrimary = function(message) system.printColor(message, "#007bff") end
77+system.printsecondary = function(message) system.printColor(message, "#6c757d") end
88+system.printSuccess = function (message) system.printColor(message, "#28a745") end
99+system.printDanger = function (message) system.printColor(message, "#dc3545") end
1010+system.printWarning = function (message) system.printColor(message, "#ffc107") end
1111+system.printInfo = function (message) system.printColor(message, "#17a2b8") end
1212+1313+--[[
1414+ USAGE
1515+ if you want some standard bootstrap colors you can use these methods
1616+ system.printPrimary("test Primary")
1717+ system.printSecondary("test Secondary")
1818+ system.printSuccess("test Success")
1919+ system.printDanger("test Danger")
2020+ system.printWarning("test Warning")
2121+ system.printInfo("test Info")
2222+2323+ if you want to use a custom color :
2424+ system.printColor("test color", "red") --eg for red, you can also use any HTML Hex color code
2525+]]