Gas and coke have had an interesting partnership over the years. Coke was needed for industrial purposes, particularly smelting. The gas was seen as a noxious result to be vented to air. After a period of being burnt off as waste it was eventually used for lighting and became the more important product. The people and places involved in this transition read like a who's who of 18C engineering: Boulton, Murdoch, Spedding, Watt, the Carron Ironworks and the Cornish mines. With the coming of electricity gas value fell whilst demand for coke rose. The gas companies then pushed gas not only for cooking, but for central heating, and eventually gas again became the dominant factor. Mixed town/petroleum gas was cheaper in the '60s, then in the '70s natural gas came on stream. What happens to the gas produced during coke manufacture nowadays I don't know.
I remember coal fires in the Black Country in the early '60s, then in 1965 we moved back to Sheffield and due to the clean air act could not burn coal and had to use coke. Nothing like as nice to watch and not as good for toast or crumpets. Later on we lost the coke fires to gas central heating and gas fires. Still usable for toast but nothing like as good.