How to Enable Syntax Highlighting for Python in ATOM - atom-editor

I'm using Python 3.7, and our class has transitioned to ATOM Editor for our IDE. The Professor is running Ubuntu and his works, and a few people have had there's sporadically work but I'm unable to get any syntax highlighting or error pop-ups (Even if I make obvious errors)

To enable syntax highlighting you need to have the 'language-python' package from here. Then make sure the file you are editing ends in '.py'. If these two steps have been followed the syntax highlighting should be in effect. Also load the 'Script' package from here. This package lets you run python scripts from Atom.

Related

Syntax highlighting not working in RVscode

I have just started using R extension for vscode (this extension). I have installed as per the steps mentioned in the installation page (install R, I am using R4.1.1, then I installed languageserver, I also installed radian).
The issue I am facing is I am not getting any syntax highlighting, look at the example below:
What I want is the type of syntax highlighting as mentioned in the installation page. In the installation page, the function calls, function parameters etc are highlighted but that's not the case with my installation.

Customize R linters in VSCode

I'm trying to customize the linter settings in VSCode for R but I'm a little confused.
I've checked just about every source available, from SO questions to the lintr package vingette, but I'm stumbling on an issue. It could be that since I'm not a programmer I'm just not understanding something basic but essential.
A question about line length linter 80 characters
Disable R-linting in VScode
How to change the line length preference for warnings in Diagnostics? #3
Specify linters in lintr::lint
lintr github page
Lint R code in Visual Studio
lintr v2.0.0
Using lintr
It seems like I need to create a .lintr file in the folder that my script is in. Or possibly make changes in the .lintr file in the lintr package ~lintr/R/ folder?
I guess I'm just confused on the .lintr file. I tried creating files called "lintr", ".lintr" and "ScriptName.lintr", then added the following line to it, as described in the above sources:
linters: with_defaults(line_length_linter=line_length_linter(120L))
Then I reopened the script but whatever I do, lintr continues to default to 80 spaces. I think I'm doing something wrong with the .lintr file but I'm not sure what. I also tried changing file called "lintr" in the lintr package directory, but I can't save the file because it has no extension type (though it appears to be in the Debian Control Field Format, whatever that is). Windows keeps giving me a prompt to save as "txt".
I'd appreciate any step-by-step instructions to get past this issue.

atom julia syntax highlighting

im trying to set up an editor syntax highlighting scheme for julia in atom, (using juno although i do not know if that is relevant).
i have googled around for two hours and tinkered around in atoms' settings and in the https://atom.io/packages/language-julia specific settings too.
i've found mentions about running scripts (juno) https://github.com/JunoLab/Juno.jl/issues/15 etc but i think this is not a solution, a simpler way must exist.
i had expected to be able to find someones stylesheet for julia, adapt it with my preferred colors and plug it into atom...
please, i would be grateful if someone could indicate how to do this: configure colors in editor - syntax highlighting for julia (perhaps with juno). thanks!
If you install Juno with Atom the Julia syntax highlighting will just work. Perhaps something did not get installed? Here are the installation instructions that I have tested on lots of students:
Download and install Atom (available at https://atom.io/).
Start Atom and press Ctrl + , ( Ctrl key + comma key ) to open the Atom settings screen.
Select the Install tab.
In the Search packages field, type uber-juno and press Enter .
You will see the uber-juno package developed by JunoLab—click Install to install the package.
However, sometimes the Atom installation gets stalled. In that case you need to stop Atom, delete the .atom folder that is usually found in your user home folder and restart Atom. On very rare occasions I also had to reinstall Atom as well.
Finally, note that as of today the recommended IDE for Julia is VS Code and the support for Atom Juno development has stopped.

How to verify if atom package launched properly in atom editor

I installed linter-php and also tried to configure it in config.cson as following
"linter-php":
executablePath: "C:\xampp\php"
but I don't see any indication that something that is related to linter affects atom display. How can I verify that this package (or any package in general) is working properly when atom is running?
To answer your question: you can find all active packages by running atom.packages.activePackages in Atom's developer console.
However, your problem could be caused by providing an invalid path. Backslashes need to be escaped in CSON, so your config should look like this:
"linter-php":
executablePath: "C:\\xampp\\php"

Cannot start Julia in Atom (LoadError: ArgumentError: Juno not found in path)

I installed Atom and uber-juno as instructed by Julia's homepage, but when I tried to start Julia in Atom, I was given the following error:
ERROR: LoadError: ArgumentError: Juno not found in path
in require at loading.jl:249
in include at boot.jl:261
in include_from_node1 at loading.jl:320
in process_options at client.jl:280
in _start at client.jl:378
while loading C:\Users\think\.atom\packages\julia-client\script\boot.jl, in expression starting on line 36
I think you are doing using Juno inside Atom. Juno.jl is a separate package for developing Juno plugins.
Fist save a new file with a .jl extension and type some Julia code (or open an existing .jl file) in Atom, then press SHIFT + ENTER with the cursor in the block of code that you want to evaluate, you should see the result, ie.
1 + 1 # type SHIFT + ENTER
A bubble notification will pop up with the value 2 (when you just start Atom you will see a spinning gear icon until Juno is ready to evaluate a block of code).
This isn't really a question for StackOverflow, it's a package/installation discussion. There was a new version tagged this morning which makes use of the new Juno.jl package where the front end stuff is held (this will be useful for package developers since it will allow them to extend Juno / add extra functionality for their packages which interact with Juno, adding only a light dependency). However, Juno.jl is not yet a registered package, leading to this mess.
One way to deal with this problem is to install the development version of the package:
Pkg.clone("https://github.com/JunoLab/Juno.jl")
However, this is not recommended for most users since you'll be at the bleeding edge (you may also need to do [Pkg.checkout(x) for x in ["Media", "Blink", "Atom"]] and use the dev install. So while this would fix this for right now, this will put you on the bleeding edge, a version which does not have a guarantee of stability. Thus, don't do this unless you're really familiar with Julia. (If you didn't see this error and immediately know to check Github for Juno.jl and use Pkg.clone, then you likely shouldn't be using this solution because you will get many random errors coming up all the time due to being on the development version!)
Otherwise, wait for the fix. This error is known, someone opened the issue here. The standard uber-juno install should be fixed up shortly.
If you want more help see the Juno Gitter or the Juno discussion board.
I just re-installed Atom and ran into the same problem. The problem comes from line 31 of ~/.atom/package/julia-client/script/boot.jl which is using Juno. Comment out this line and then Packages > Julia > Start Julia works.
The best solution is to uninstall and reinstall package julia-client and uber-juno.

Resources