Page 1 of 1

PureBasic language support in Atom

Posted: Tue Oct 15, 2019 9:28 am
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

Re: PureBasic language support in Atom

Posted: Fri Oct 18, 2019 3:02 am
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.

Re: PureBasic language support in Atom

Posted: Fri Oct 18, 2019 8:40 am
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?

Re: PureBasic language support in Atom

Posted: Fri Oct 18, 2019 8:57 am
by mk-soft
Remove...

sorry, did not fit

Re: PureBasic language support in Atom

Posted: Sat Oct 19, 2019 4:44 am
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.

Re: PureBasic language support in Atom

Posted: Sat Oct 19, 2019 7:02 am
by #NULL
It's /home/user/.atom/packages/ (Linux, user is the username)

Re: PureBasic language support in Atom

Posted: Sat Oct 19, 2019 8:18 am
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

Re: PureBasic language support in Atom

Posted: Sat Oct 19, 2019 10:15 am
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