Recent

Author Topic: [SOLVED] All Things SynFacilSyn  (Read 8789 times)

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Re: All Things SynFacilSyn
« Reply #45 on: August 29, 2019, 07:20:25 pm »
Use

Code: Pascal  [Select][+][-]
  1.   hlt1.tkKeyword.Foreground := clGray;
  2.   hlt1.tkKeyword.Style := [fsBold];
  3.  

Brackets are defined as tkNumber.
Interior is defined as tkKeyword.

You can use ANY OTHER TOKEN TYPE (predefined or creating new ones).  This is just a sample.

Perfect. I didn't think it was a keyword because I specified keywords like this.
 
Code: Pascal  [Select][+][-]
  1. hlt1.AddKeyword('some text');

Thank You
I am almost done with this project... you have been very informative.

BTW... this is a very nice and VERY complex library.... there is a lot to take in here
 :D


« Last Edit: August 29, 2019, 07:31:47 pm by pixelink »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Re: All Things SynFacilSyn
« Reply #46 on: August 29, 2019, 07:37:11 pm »
Okay... the prototype is done. and seems to work fine.

See image attached

What you don't see in image...
1) All "<!" and ">"'s have been stripped using StringsReplace
2) All the "[]"s are there, but they have been turned white

So, now it is time to put this in my LyricsEditor app and see if it will handlw larger text faster then my parsing routine (that works - but slow)

Edson... I need to give you credit in my app. Do you prefer for me to reference "Edson" or your real name... which is ...??

Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Re: All Things SynFacilSyn
« Reply #47 on: August 29, 2019, 08:35:19 pm »
okay... It is finished and works great.
See below image

I put this credit in the app for Edson, if that is not what you want let me know
Quote
The SynFacilSyn code library used for the Highlighting in the Lyrics Viewer is provided by Edson of the Lazarus community forum.


THANKS AGAIN!!!
 :D
« Last Edit: August 29, 2019, 08:37:33 pm by pixelink »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

Edson

  • Hero Member
  • *****
  • Posts: 1325
Re: All Things SynFacilSyn
« Reply #48 on: August 29, 2019, 10:16:16 pm »
Good. Congratulation.

Edson... I need to give you credit in my app. Do you prefer for me to reference "Edson" or your real name... which is ...??

You can refer to me "Tito Hinostroza" as it specified in my GitHub: https://github.com/t-edson/PicPas

The important is refer to the source of the library in GitHub.

So, now it is time to put this in my LyricsEditor app and see if it will handlw larger text faster then my parsing routine (that works - but slow)

You can use SynFacilSyn as a lexer too  :). Check the Technical Documentation, Section 5.20.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

pixelink

  • Hero Member
  • *****
  • Posts: 1269
Re: All Things SynFacilSyn
« Reply #49 on: August 29, 2019, 11:14:39 pm »
Good. Congratulation.

Edson... I need to give you credit in my app. Do you prefer for me to reference "Edson" or your real name... which is ...??

You can refer to me "Tito Hinostroza" as it specified in my GitHub: https://github.com/t-edson/PicPas

The important is refer to the source of the library in GitHub.

So, now it is time to put this in my LyricsEditor app and see if it will handlw larger text faster then my parsing routine (that works - but slow)

You can use SynFacilSyn as a lexer too  :). Check the Technical Documentation, Section 5.20.

okay, how about this
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 4.2.0 •  VSSTUDIO(.Net) 2022 • Win11 • 32G RAM • Nvida RTX 4070 Ti Super

Edson

  • Hero Member
  • *****
  • Posts: 1325
Re: [SOLVED] All Things SynFacilSyn
« Reply #50 on: September 01, 2019, 05:20:25 am »
It's Ok for me.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Thaddy

  • Hero Member
  • *****
  • Posts: 18305
  • Here stood a man who saw the Elbe and jumped it.
Re: [SOLVED] All Things SynFacilSyn
« Reply #51 on: September 01, 2019, 09:25:52 am »
Be aware though, that if you claim copyrights that belongs to a company, the company needs to be registered. Otherwise you have to claim copyrights in person.
E.g. I still own a registered company called 33 bit software (in deeeeep sleeeep), but I always copyright under my own name.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

 

TinyPortal © 2005-2018