PureBasic language support in Atom

Share your advanced PureBasic knowledge/code with the community.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

PureBasic language support in Atom

Post by Mistrel »

I made a legacy TextMate grammar rule for Atom to provide syntax highlighting for the PureBasic language. I did quite a bit of testing and it seems solid. Let me know if you have any issues.

https://github.com/codespunk/atom-grammar-purebasic

Image
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureBasic language support in Atom

Post by Mistrel »

I'd love to see some of us get together and flesh this out some more. It would be great to provide some native integration of features as an alternative to the official IDE. This would allow us to push some of our own features or enhancements.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: PureBasic language support in Atom

Post by #NULL »

How to install? I did put the language-purebasic folder into my .atom/packages folder but it conflicts with another package of the same name which I uninstalled before. Still in the 'install' section the old package is shown as installed again when I copied your package folder. Do you know how to get rid of the old package?
User avatar
mk-soft
Always Here
Always Here
Posts: 5409
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic language support in Atom

Post by mk-soft »

Remove...

sorry, did not fit
Last edited by mk-soft on Sat Oct 19, 2019 9:45 am, edited 1 time in total.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureBasic language support in Atom

Post by Mistrel »

#NULL wrote:How to install? I did put the language-purebasic folder into my .atom/packages folder but it conflicts with another package of the same name which I uninstalled before. Still in the 'install' section the old package is shown as installed again when I copied your package folder. Do you know how to get rid of the old package?
Where is your .atom/packages folder? It should be located in %username%\.atom\packages on Windows, unless you're using another OS.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: PureBasic language support in Atom

Post by #NULL »

It's /home/user/.atom/packages/ (Linux, user is the username)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureBasic language support in Atom

Post by Mistrel »

That should be the right path. See if there is a folder elsewhere with:

Code: Select all

grep -ir purebasic / 2>/dev/null
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: PureBasic language support in Atom

Post by #NULL »

if I install and uninstall (from within atom in the install section) the other package 'language-purebasic' (by peterthomashorn) then the directory will appear and disappear in that packages directory, but after unistalling it grep still shows a lot of matches in compile-cache and .apm

https://discuss.atom.io/t/apm-manually- ... lder/21359
I deleted folder _cacache in .apm, then copied you package and now it's listed in 'packages'. In 'install' it show the other package as being installed though, but its really your package that is installed.

I think it would be good avoid that name conflict first of all.
the other package:
https://atom.io/packages/language-purebasic
forum german:
https://www.purebasic.fr/german/viewtop ... =2&t=29571
Post Reply