pascal.api, where?

2005-12-04
2012-11-13
  • Nobody/Anonymous

    Hello, in the documentation in the site there's a reference to a pascal.api file and it doesn't say it's internal. Therefore, I assumed npp.3.3.Installer.exe would include it. Nope. It isn't listed to be download separately in the site either. I downloaded the zip for versions 3.3 and 3.0 but it isn't here, too. However, N++ 3.3 is able to show syntax highlighting for .pas files already, so I wonder if pascal.api exists, it's obsolete or it's internal. Thanks.
    C.

     
    • Nobody/Anonymous

      Hi, I started a simple pascal.api file, so far including the keywords of crt and dos units as well as some keywords. Copy the following lines and save them as "pascal.api" file in directory "plugins\APIs" under your program directory.
      @all: Let's complete this pascal.api file and get it included in the next version. Thx.

      Bernhard
      --------------------------------------
      anyfile
      archive
      ARRAY
      AssignCrt
      BEGIN
      Black
      Blink
      Blue
      Boolean
      Brown
      bw40
      bw80
      Byte
      CheckBreak
      CheckBreak
      CheckEOF
      CheckEoF
      CheckSnow
      CheckSnow
      ClrEol
      ClrScr
      co40
      co80
      ComStr
      CONST
      CursorBig
      CursorOff
      CursorOn
      Cyan
      DarkGray
      DateTime
      Delay
      DelLine
      directory
      DirectVideo
      DirectVideo
      DirStr
      DiskFree
      DiskSize
      DO
      DosError
      DosExitCode
      DosVersion
      DOWNTO
      END
      EnvCount
      EnvStr
      Exec
      ExtStr
      fauxiliary
      fcarry
      FExpand
      FileRec
      FindClose
      FindFirst
      FindNext
      fmclosed
      fminout
      fminput
      fmoutput
      foverflow
      fparity
      FSearch
      fsign
      FSplit
      fzero
      GetCBreak
      GetDate
      GetEnv
      GetFAttr
      GetFTime
      GetIntVec
      GetLongName
      GetShortName
      GetTime
      GetVerify
      GotoXY
      Green
      hidden
      HighVideo
      InsLine
      Integer
      Intr
      Keep
      KeyPressed
      LastMode
      Lastmode
      LightBlue
      LightCyan
      LightGray
      LightGreen
      LightMagenta
      LightRed
      LongInt
      LowVideo
      Magenta
      mono
      MSDos
      NameStr
      NormVideo
      NoSound
      PackTime
      PathStr
      ReadKey
      readonly
      RECORD
      Red
      Registers
      REPEAT
      ScreenHeight
      ScreenWidth
      SearchRec
      SetCBreak
      SetDate
      SetFAttr
      SetFTime
      SetIntVec
      SetTime
      SetVerify
      Sound
      String
      SwapVectors
      sysfile
      TextAttr
      TextBackground
      TextChar
      TextColor
      TextMode
      TextRec
      TO
      TYPE
      UnpackTime
      UNTIL
      VAR
      volumeid
      WhereX
      WhereY
      WHILE
      White
      WindMax
      WindMin
      Window
      Word
      Write
      WriteLn
      Yellow

       
    • Paulius

      Paulius - 2005-12-06

      Api files are the files where Notepad++ looks for the words to display in the box, when you hit CONTROL + SPACE.
      There is no pascal.api file, at least - i don't think there is. So if you want. You can simply make that file. All you have to do is make a text file. Each line of that file must contain only one word and there shouldn't be spaces. Also, the lines must be sorted alphabeticaly (Note: TextFX plugin ca sort them for you, so you just need to worry about making that list).
      After writing this file - drop it into <notepad++.exe dir>\plugins\APIs directory.

      PS: there are api files ready for C, PHP and many more languages - you can look at them, if you want to see how does it work and how they are writen.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks