Show_Code(mob/M in world)
var/msg= input("Put your code here.", "Code") as text
var/code_doc = {"[src.name]([src.key]) would like to share this code with you:<br><br>[dm][msg][/dm]
"}
M << browse(code_doc,"window=Code")
I want to know how to put the msg in the DM visual code colors and stuff. The part with [dm]and [/dm] are actually <>. But since if I put the <> the code will close off in this post.
But I suppose you could try to make the code check for words like "if" and change the color to blue, and etc.
Not so positive about this, though.