Building a CDT-based editor, Part 2, Presenting text in the CDT

Highlighting source code with syntax styling

From the developerWorks archives

Matthew Scarpino

Date archived: January 4, 2017 | First published: September 19, 2006

This article, the second in a "Building a CDT-based editor" series, introduces text presentation in the Eclipse C/C++ Development Tooling (CDT). Text presentation is an important advantage of the CDT. The clear, multicolored display makes it easy to read and navigate through code. Understanding how this works is crucial, whether you want to understand the CDT code or build a full-featured source editor of your own. Further, the mechanisms that make CDT text presentation possible are also needed for a more important capability: automatic parsing.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.

Zone=Open source
ArticleTitle=Building a CDT-based editor, Part 2: Presenting text in the CDT