Syntax Highlighter for TEditor sub classes #122
paule32
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
![grafik](https://private-user-images.githubusercontent.com/3682603/283906038-f88257cb-898e-4ba9-bdf6-066141bb16f6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzMjQ1OTcsIm5iZiI6MTcyMDMyNDI5NywicGF0aCI6Ii8zNjgyNjAzLzI4MzkwNjAzOC1mODgyNTdjYi04OThlLTRiYTktYmRmNi0wNjYxNDFiYjE2ZjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDdUMDM1MTM3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mzk4MTU2ZTY0NDczOWYyYjgxMGQ3ZThlMjg5ZTIzMjhlNTU3Yjc5MzIyMGE4MzE4ZWI0NzI3YzQzZDY1YzczZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.4VlNIxF3S9kPtdupEErbXpZk34R50_gBLgZ8RHr4Pj4)
I toying a little bit witht the source code file source/tvision/edits.cpp, and include/tvision/editors.h.
The result is a little Syntax Highlighter for Pascal keywords.
It is a very simple parser, so it can be proof - it is nothing, just for fun Project:
I added 3 members to the TEditor class in include/tvvison/editors.h:
the first Argument is the keyword name, and the second Argument of the map container is the BIOS color code
Here the code, that I used in source/edits.cpp:
Here is a example on using the features:
Let me know, if this helpfull .
Thanks, paule32
Beta Was this translation helpful? Give feedback.
All reactions