Sublime Text 2

Everything else that doesn't fall into one of the other PB categories.
xorc1zt
Enthusiast
Enthusiast
Posts: 276
Joined: Sat Jul 09, 2011 7:57 am

Sublime Text 2

Post by xorc1zt »

I made a plugin for sublime text 2 (Windows ver. only)

- auto completion ( functions and constants )
- automatic build
- handle build errors
- colors
- automatic indentation
- snippets for procedure, structure, if else, ...

Image

link : http://demo.ovh.com/en/a6ec30ca079cdb8d ... 2d689d717/
kvitaliy
Enthusiast
Enthusiast
Posts: 162
Joined: Mon May 10, 2010 4:02 pm

Re: Sublime Text 2

Post by kvitaliy »

xorc1zt wrote:I made a plugin for sublime text 2 (Windows ver. only)



link : http://demo.ovh.com/en/a6ec30ca079cdb8d ... 2d689d717/
Error 404: The requested document cannot be found. :(
xorc1zt
Enthusiast
Enthusiast
Posts: 276
Joined: Sat Jul 09, 2011 7:57 am

Re: Sublime Text 2

Post by xorc1zt »

aaron
Enthusiast
Enthusiast
Posts: 267
Joined: Mon Apr 19, 2004 3:04 am
Location: Canada
Contact:

Re: Sublime Text 2

Post by aaron »

Nicely done. Sublime Text is an amazing editor. Happy to be able to PureBasic from it now.
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Sublime Text 2

Post by Zach »

Wow that looks nice
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Sublime Text 2

Post by hallodri »

Does anyone have this file?
rambodash
User
User
Posts: 23
Joined: Thu Jun 13, 2013 1:00 am

Re: Sublime Text 2

Post by rambodash »

User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Sublime Text 2

Post by hallodri »

Woooh! Thank you! :)
User avatar
GG
Enthusiast
Enthusiast
Posts: 266
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Re: Sublime Text 2

Post by GG »

Does it work for Sublime Text 3 ?
Do you know the method to install it ? Same thing as v2 and v3 ?
Purebasic 6.12 64 bits - Windows 11 Pro 64 bits 23H2
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Sublime Text 2

Post by hallodri »

Yes, it also works under version 3

Install the files under "Sublime3\Data\Packages\PureBasic".
User avatar
GG
Enthusiast
Enthusiast
Posts: 266
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Re: Sublime Text 2

Post by GG »

Thanks Hallodri, that's better. Colors are OK.

But when I build, I've got the following errors :
DPI scale: 1
startup, version: 3059 windows x32 channel: stable
executable: /D/Applications/Sublime Text 3.0 Build 3059/sublime_text.exe
working dir: /D/Applications/Sublime Text 3.0 Build 3059
packages path: /D/Applications/Sublime Text 3.0 Build 3059/Data/Packages
state path: /D/Applications/Sublime Text 3.0 Build 3059/Data/Local
hardware concurrency: 2
zip path: /D/Applications/Sublime Text 3.0 Build 3059/Packages
zip path: /D/Applications/Sublime Text 3.0 Build 3059/Data/Installed Packages
found 3 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 2 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
wrote startup cache, added files: 6 orphaned files: 0 total files: 149 cache hits: 143
pre session restore time: 0.202216
startup time: 0.218216
first paint time: 0.218216
unable to auto detect encoding for C:\Projets GG\Purge\Copie (2) de Purge.pb, using fallback encoding Western (Windows 1252)
Unable to fetch update url contents
launching: /D/Applications/Sublime Text 3.0 Build 3059/plugin_host.exe
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin PureBasic.PureBasic
Traceback (most recent call last):
File "D:\Applications\Sublime Text 3.0 Build 3059\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
File "<frozen importlib._bootstrap>", line 1023, in load_module
File "<frozen importlib._bootstrap>", line 1004, in load_module
File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
File "<frozen importlib._bootstrap>", line 854, in _load_module
File "<frozen importlib._bootstrap>", line 981, in get_code
File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
File "D:\Applications\Sublime Text 3.0 Build 3059\Data\Packages\PureBasic\PureBasic.py", line 110
global compilerprocess
^
TabError: inconsistent use of tabs and spaces in indentation
plugins loaded
loaded 850 snippets
Unable to find target command: buildpb
Unable to find target command: buildpb
unable to auto detect encoding for C:\Projets GG\Purge\Copie (2) de Purge.pb, using fallback encoding Western (Windows 1252)
Unable to find target command: buildpb
Unable to find target command: buildpb
Unable to find target command: buildpb
Unable to find target command: buildpb
Any idea ?
Purebasic 6.12 64 bits - Windows 11 Pro 64 bits 23H2
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Sublime Text 2

Post by hallodri »

Try this http://pastebin.com/YDgNWQXw and add it in PureBasic.py
Wolfram
Enthusiast
Enthusiast
Posts: 604
Joined: Thu May 30, 2013 4:39 pm

Re: Sublime Text 2

Post by Wolfram »

Hi, can some one help me to make it running on OSX?
macOS Catalina 10.15.7
fryquez
Enthusiast
Enthusiast
Posts: 391
Joined: Mon Dec 21, 2015 8:12 pm

Re: Sublime Text 2

Post by fryquez »

Seems all links are either down or private.
Can anyone upload this plugin again, please?
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Sublime Text 2

Post by hallodri »

Post Reply