Recent

Author Topic: Pascal in sublime text.  (Read 3075 times)

CouldnoT

  • Newbie
  • Posts: 2
Pascal in sublime text.
« on: May 27, 2020, 02:35:07 pm »
Hello friends,
Is there a way to use sublime text to compile Pascal scripts.
I tried every method I've found in google and nothing working, I'm using windows 8.1.
Thanks for help, and have a good day!

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Pascal in sublime text.
« Reply #1 on: May 28, 2020, 06:17:45 pm »
I've found some explanations, but curiously most them are in Spanish. ::)

Anyway, here you have.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Leledumbo

  • Hero Member
  • *****
  • Posts: 8760
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Pascal in sublime text.
« Reply #2 on: May 29, 2020, 02:21:08 am »
Just search for Pascal or Delphi in the package control, you will have a couple packages that register build menu for Pascal files.

CouldnoT

  • Newbie
  • Posts: 2
Re: Pascal in sublime text.
« Reply #3 on: May 30, 2020, 08:27:36 pm »
This package helped me, thanks for everyone.
Of course you need free pascal installed.

Code: Pascal  [Select][+][-]
  1.  
  2. {
  3.         "shell": true,
  4.         "cmd": ["fpc", "${file_path}/${file_base_name}", "&&", "start", "cmd", "/c", "$file_base_name.exe", "&", "pause"],
  5.         "selector": "source.pascal",
  6.         "variants": [
  7.             {
  8.                 "cmd": ["start", "cmd", "/c", "$file_base_name.exe & pause"],
  9.                 "name": "Run",
  10.                 "shell": true
  11.             },
  12.             {
  13.                 "cmd": ["fpc", "${file_path}/${file_base_name}"],
  14.                 "name": "Compile",
  15.                 "shell": true
  16.             }
  17.         ]
  18.     }

wytwyt02

  • Jr. Member
  • **
  • Posts: 83
Re: Pascal in sublime text.
« Reply #4 on: June 06, 2020, 03:23:42 am »
Sublime is a good edtior, I wish can coding lazarus in sublime text with code auto completed

 

TinyPortal © 2005-2018