2014-03-06 113 views
1

我想在OS X Mavericks的Sublime Text(Sublime Text 2)中運行pascal代碼。在OS X的Sublime Text中運行pascal

我發現這個工作和運行在Windows中的崇高建設。 (通過Qwerty鍵盤創建https://stackoverflow.com/users/985454/qwerty。)

{ 
    "cmd": ["fpc", "${file_path}/${file_base_name}"], 
    "selector": "source.pascal", 
    "variants": [ 
    { 
     "cmd": ["start", "cmd", "/c", "$file_base_name.exe & pause"], 
     "name": "Run", 
     "shell": true 
    } 
    ] 
} 

,但我不`噸知道如何修改它在OS X工作

我的測試是一個簡單的Hello World:

Program HelloWorld; 
begin 
    writeln("Hello, world!"); 
    readln; 
end. 

回答

0

嘗試

{ 
    "cmd": ["fpc", "${file_path}/${file_base_name}"], 
    "selector": "source.pascal", 
    "variants": [ 
    { 
     "cmd": ["open -a Terminal.app '${file_path}/${file_base_name}'"], 
     "name": "Run", 
     "shell": true 
    } 
    ] 
} 

此外,您的「你好,世界!」程序應使用單引號字符串:

Program HelloWorld; 
begin 
    writeln('Hello, world!'); 
    readln; 
end. 
相關問題