Density functional theory calculation predicts a novel ordered boron phosphorus codoped graphene realizing a widely tunable Dirac-cone gap.