Taxes are only a minor part of why diesel is so much higher than gasoline. The federal tax is only 6 cents per gallon higher. State taxes are all over the place but some are even lower than the taxes on gas. Check out the lick to US motor fuel taxes.

taxadmin.org/assets/docs/Research/Rates/mf.pdf