Facile synthesis of ordered mesoporous carbons with high thermal stability by self-assembly of resorcinol-formaldehyde and block copolymers under highly acidic conditions.