Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » CodeEditor syntax support refactored
CodeEditor syntax support refactored [message #43133] Thu, 15 May 2014 08:47
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
In order to open the path to create highlighting (and other syntax support) for languages that are not that much similiar to C++ (e.g. html), I have heavily refactored the thing.

There is now a new class EditorSyntax which represents syntax of specific language for the CodeEditor at some point in the file. It also provides information about braces and indentation logic (we might add more in the future) and is capable of highlighting line.

Derived classes must support Serialization - this is used to cache syntax positions in the file.

Current highlighting code was, for now, moved to common CSyntax class (derived from EditorSyntax). I expect to gradually remove non-curly-braces language from this common class, which at the end of process should represent C-like languages.

Mirek
Previous Topic: How to manage UPP namespace
Next Topic: One vs std::experimental::optional
Goto Forum:
  


Current Time: Fri Mar 29 05:55:49 CET 2024

Total time taken to generate the page: 0.00907 seconds