You can use my abbreviations (&...;) or the normal Minecraft Formatting codes (§...). It will generate you a normal text (§...) and a JSON text for servers (\u00A7...).
I used scripts from my other account @colinb (Scratch starter) Formatting Codes: http://minecraft.gamepedia.com/Formatting_codes