?
Hi,
?
how to setup User Defined Markup in Source Editor so it changes style (color, bold etc.)? (See screenshot). There are some properties like Priority or Set Bound at Start/End but I don't know how to use them properly. ?
Thanks.
?
V.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lprojects.png
Type: image/png
Size: 4974 bytes
Desc: lprojects.png
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150504/7bf1e2ae/attachment.png>
Mailing lists / lazarus / 2015-05
User defined markup question
5 messages · 2 people · –
- VVojtěch Čihák 3
- MMartin Frb 2
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I didn't write it explicitly, I want that only "LProjects" become green while "TGLProjects" remain default.?
? ? how to setup User Defined Markup in Source Editor so it changes style (color, bold…
Vojt?ch ?ih?k wrote 7 lines
See also
http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_User_Defined_Words
I assume you want a fixed word list (no adding of new session temporary words via key strokes)?
On the "main settings" page
1) add the words to the list (white box, right side of the dialog) actually it is terms, as you can add a phrase too, but it will only match, if on a single line. And it is sensitive to space count. One space is exactly one, and tabs and spaces are different too.
2) For each word (while the word is selected) decide
- case sensitivity
- "bound at term start" (or "end") If this is ste then the term (the word) is only matched, if it begins/ends as a new word (is surrounded by none wordchars.
In the text "FooBar, what?", the term "Bar" will be matched as follows
- neither bound is required: matched
- only end bound is required: matched
- only start bound is required: NOT matched ("Bar" is not the beginning of a new word)
- both bound are required: NOT matched
----------------------
Priority
See: Editor / Dispay / Colors. There is a button "Priorities" Each color has a priority. A color with a higher priority overpaint those with lower priority.
So you can define if your colors are affected e.g. by the color that "text selection" applies.
you can use alpha, to apply the color as a mix/fade.
I didn't write it explicitly, I want that only "LProjects" become green while…
Vojt?ch ?ih?k wroteI didn't write it explicitly, I want that only "LProjects" become green while "TGLProjects" remain default.
Set the bounds on both sides.
bound = word boundary
See also http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_User_Defined_Words I…
Thanks, start/end bounds did the job.
