Search code examples
notepad++pascalfreepascalfpc

Notepad++ + fpc compiler


How to combine Free Pascal compiler and NP++ (or maybe other editor, Vim, Geany, ...)? i.e. I want something like IDE: compiling, running from NP++, list of errors\warnings. I tried http://sourceforge.net/projects/notepad-plus/forums/forum/331753/topic/2084061?message=5036415 but it doesn't work. Also tried some different code

cd $(CURRENT_DIRECTORY)
fpc $(NAME_PART).pas

but the same issue occurs

enter image description here


Solution

  • Hm, looks like np++ plugin mentioned in the question works, not sure what was the problem and why it did not create .exe when I first tried, but now everything works.

    Also found SciTE editor, where it is possible to add something like

    #using free pascal
    
    # compile
    command.compile.*.pas=fpc "$(FilePath)"
    
    # normal execute
    if PLAT_WIN
        command.go.*.pas="$(FileName).exe"
        command.go.subsystem.*.pas=2
    if PLAT_GTK
        command.go.*.pas="kvt -e $(FileName)"
    
    # build
    command.build.*.pas=fpc -B "$(FilePath)"
    command.build.subsystem.*.pas=1
    
    command.name.0.*.pas=Debug Compile
    command.0.*.pas=fpc -g "$(FilePath)"
    command.name.1.*.pas=Debug Build
    command.1.*.pas=fpc -g -B "$(FilePath)"
    command.name.2.*.pas=GDB
    if PLAT_WIN
        command.2.*.pas=gdbpasw "$(FileName)"
    if PLAT_GTK
        command.2.*.pas=gdb "$(FileName)"
        command.name.3.*.pas=DDD
        command.3.*.pas=ddd "$(FileName)"
    

    to pascal.properties. Or here it is already included: http://code.google.com/p/scite-ru/downloads/list