Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2001-11

New Bug Entered

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Nagy Zsolt
to Unknown author: Title: Project source syntax highlighting Entered by: Zsolt If I see the project source,…

----- Original Message -----

Earlier message 22 lines
From: "Mattias Gaertner" To: Sent: Wednesday, November 21, 2001 10:17 AM Subject: Re: [lazarus] New Bug Entered > On Wed, 21 Nov 2001 02:08:00 -0500 > wrote: > > > > > Title: Project source syntax highlighting > > > > Entered by: Zsolt > > > > If I see the project source, the source is not colored. > > Hmm, I can't find any problem. The units of project are colored but the project itself (which is hide by default and where the "Application.Run" line is) is not colored. Zs.

Reply by email

Nagy Zsolt
to Unknown author
> The units of project are colored but the project itself (which is hide

by

> default and where the "Application.Run" line is) is not colored. I created an application, and do a menu->view->view units->Project1. The

main unit is opened in the source editor in color. I close the unit and open it manually. Also in color.

Plz tell me the steps to get an non colored main unit, so I can fix it. Mattias

I don't understand what happend, but if I make a new project the colorize is correct.

So it works! There is no bug. Sorry.

Zsolt

Reply by email

Mattias Gaertner
to Unknown author: Title: Project source syntax highlighting Entered by: Zsolt If I see the project source,…
Show quoted text 6 lines
Title: Project source syntax highlighting Entered by: Zsolt If I see the project source, the source is not colored.

Hmm, I can't find any problem.

There is currently only pascal syntax highlighting for all files with the syntax extension in the editor options and only if 'use syntax highlight' is activated.

The source editor already supports different highlighting. The only missing thing is a good color editor for all non pascal languages. Here is a list, what I want:

- There should be a default language (of course pascal) and all other languages should take that as a template. For example: If the color for python keywords is set to default, than it will have the color of the pascal keywords. Thus, if you set in pascal keywords to red, than all keywords of all languages would be red (except those not set to default).
- syntax elements of a language A that has no correspondence in pascal should be mapped. For example: 'tag' in xml should be mapped to keyword in pascal. This mapping will be fixed into the code, and can not be changed. Perhaps later.
- There should be two types of setting the color scheme:
+ When default color scheme is changed (e.g. to twilight), than all languages should switch to twilight. (= switching the color scheme for pascal)
+ It should also be possible to change the color scheme only for one language.

Comments!

Mattias

Reply by email

Mattias Gaertner
to Unknown author: Title: Project source syntax highlighting Entered by: Zsolt If I see the project source,…
The units of project are colored but the project itself (which is hide by default and where the "Application.Run" line is) is not colored.

I created an application, and do a menu->view->view units->Project1. The main unit is opened in the source editor in color. I close the unit and open it manually. Also in color.

Plz tell me the steps to get an non colored main unit, so I can fix it.

Mattias

Reply by email