Difference between revisions of "Using Lazarus for other computer languages"

From Free Pascal wiki
Jump to navigationJump to search
(New page: Lazarus is great for Free Pascal. But you can use the IDE for other languages too. This is useful to port C code or to edit cross multi tier applications, without the need to use different...)
 
Line 1: Line 1:
Lazarus is great for Free Pascal. But you can use the IDE for other languages too. This is useful to port C code or to edit cross multi tier applications, without the need to use different editors and different shortcuts and menues.
+
Lazarus is great for Free Pascal. But you can use the IDE for other languages too. This is useful to port C code or to edit cross multi tier applications, without the need to use different editors and reducing the trouble when switching between different sets of shortcuts and menu entries.
  
 
=Syntax Highlighting=
 
=Syntax Highlighting=

Revision as of 16:10, 7 April 2008

Lazarus is great for Free Pascal. But you can use the IDE for other languages too. This is useful to port C code or to edit cross multi tier applications, without the need to use different editors and reducing the trouble when switching between different sets of shortcuts and menu entries.

Syntax Highlighting

Lazarus comes with syntax highlighting for more than 20 languages. The language is guessed from the file extension. The colors can be setup in the editor options.

If your language is not yet there, you can either use one of the existing highlighters by extending the list of file extensions in the editor options. Or you can create your own highlighter and send us the new highlighter. The easiest way to create a new highlighter is to copy an existing file in lazarus/components/synedit/. The highlighter units all begin with 'synhighlighter', for example synhighlighterphp.pp is the php highlighter.

Compilation