Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sublime Text 4 QB64PE Package
#1
hello...

I've made a QB64PE package for the Sublime Text 4 IDE that includes a syntax highlighting color scheme, a build script, and snippets.
Download the attachment QB64PE.zip and extract it to the USER folder inside the Packages folder of your Sublime Text 4 IDE. 

Make sure to adjust the path to the QB64PE compiler (absolute path) in the 'QB64PE.sublime-build' file.

Then restart Sublime Text and start coding Smile


.zip   QB64PE.zip (Size: 20.55 KB / Downloads: 28)

solo88 (ron77)
aka ron77
Reply
#2
Nice!  I can almost get it to work fully on Linux.  I got it to run the compiled executable just fine, but for some reason it can't find qb64pe even though it works fine in the terminal.  If anyone else knows how to fix it let me know.  Here is the QB64PE.sublime-build file and the modifications I've done to it. Anyway, thanks solo88.

Edit: New info thanks to the sublime support forum on discord. The modified QB64PE.sublime-build file below works for me now. My menu link wasn't working because my system needed restarting to reset something to do with my PATH variable. If you want to try it without restarting, launch sublime from the terminal using 'subl'.

Code: (Select All)
{
    "shell_cmd": "\"qb64pe\" -x \"$file\"",
    "file_regex": "^(.+):([0-9]+):(.*)$",
    "working_dir": "$file_path",
    "selector": "source.qb64, source.bas",
    "file_patterns": ["*.bas", "*.BAS", "*.bi", "*.BI", "*.bm", "*.BM"],

    "variants": [
        {
            "name": "Compile Only",
            "shell_cmd": "\"qb64pe\" -x \"$file\""
        },
        {
            "name": "Compile and Run",
            "shell_cmd": "\"qb64pe\" -x \"$file\" && \"$file_path/$file_base_name\""
        },
        {
            "name": "Run Only (existing exe)",
            "shell_cmd": "\"$file_path/$file_base_name\""
        },
        {
            "name": "Compile and Run (keep console open)",
            "shell_cmd": "\"qb64pe\" -x \"$file\" && cmd /k \"$file_path/$file_base_name\""
        },
        {
            "name": "Compile and Run (pause after)",
            "shell_cmd": "\"qb64pe\" -x \"$file\" && \"$file_path/$file_base_name\" && pause"
        }
    ]
}
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Text-centring subs PhilOfPerth 3 784 12-20-2024, 02:50 AM
Last Post: Pete
  A scrolling SUB for text in SCREEN 0 TempodiBasic 1 653 12-10-2024, 01:04 AM
Last Post: TempodiBasic
  Text encryption AtomicSlaughter 8 1,692 11-17-2022, 10:58 PM
Last Post: Jack

Forum Jump:


Users browsing this thread: 1 Guest(s)