Why do you think its being rendered in OpenGL? If you render to a 3D device directly, you'll at least need to work with an appropriate 2D graphics layer on top of it (e.g. Quartz, Cairo, or Direct2D) to help you with font rendering or even basic line rendering! Bezier curves, font vectors, and anti-aliasing ain't easy.
Ah! I hand rolled my own code editor using WPF (mostly canvas and font rendering) for my live programming work. Its amazing what can be done when not using inflexible high level components.