add nxhtml mode