Updated for Code mirrors piece

done as per Brian .