[fpc-pascal] differences between .pp and .pas files

Henry Vermaak henry.vermaak at gmail.com
Mon Feb 25 12:39:49 CET 2013


On Mon, Feb 25, 2013 at 11:00:25AM +0000, Graeme Geldenhuys wrote:
> On 2013-02-25 10:51, Sven Barth wrote:
> > 
> > That's indeed a valid argument pro .pp
> 
> And a large argument against .pp extensions is that NO editor out there
> (except for FP Text IDE and Lazarus) knows about .pp, so pascal syntax
> highlighting never works. You have to always manually force the pascal
> syntax highlighting, or if the editor allows, manually add the .pp
> extension for the Pascal highlighting.

It's not a "large argument" if I can fix it with a couple of lines in my
vimrc:

let pascal_fpc=1
au BufNewFile,BufRead *.pp setf pascal
au BufNewFile,BufRead *.lpr setf pascal
"fix tabs, case sensitivity for pascal source
au FileType pascal set tabstop=2 shiftwidth=2 expandtab ignorecase

:)



More information about the fpc-pascal mailing list