Hey everyone I am working on a major update to the syntax highlighting in flpad.
Currently I use a reworked version of the example program on the FLTK website for syntax highlighting. This works ok... however it is not easy to extend and basically that is a huge problem for me (I don't only program in c/c++). So anyhow, the way to do this is to basically write a lexical parser (or use one in my case lexertk.hpp a single header file parser) and then read a config file with the language's information (types, keywords, block comments, defines, comments, etc...) and read the text buffer and create the style text buffer contents. So far it is going well making the initial 'plumbing' to do this. That said I will probably be working on this for a while (from time to time when I have a moment). But I really want flpad to be super small (174KiB currently), fast, light and easy to modify. I may have to eventually rethink a few things to make it completely configurable (i.e. add new language definitions only from the styles config file, nothing needed to be hard coded to represent specific languages... though it is needed right now for specific testing uses I have). Summary: flpad is going to get a much better (I hope) syntax highlighting system that can eventually work for basically any language. -- Regards -- Mailing list: https://launchpad.net/~torios-dev Post to : torios-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~torios-dev More help : https://help.launchpad.net/ListHelp