A novel strategy to synthesize hierarchical, porous carbohydrate-derived carbon with tunable properties.