How to use tsyntaxpainter

Hello!
I try to make a simple example for the tsyntaxedit component. I would like to load and display a Pascal source file with syntax colouring. I don't find how to do. Would someone know?
I attach my project.
Regards.
Roland
I try to make a simple example for the tsyntaxedit component. I would like to load and display a Pascal source file with syntax colouring. I don't find how to do. Would someone know?
I attach my project.
Regards.
Roland