Atom text-editor, How to show line errors

Asked

Viewed 687 times

1

Netbeans, for example, indicates line error by not containing a "dot and virtula", showing the reason by hovering the mouse over the line number.

But Adam doesn’t do it,

I know there’s a way, but I don’t know how to put this in it.

How and where I find such an addon to this ?

2 answers

1


The name of syntax check utilities is linter.
One of the most popular php linters for Atom is linter-php and its installation can be done with the following command on your terminal:

apm install linter-php

There is also a gif demonstrating the functionality on the basic plugin.

  • How I open the terminal ?

  • Windows? It’s the same command prompt.

  • Here at work is windows, back at home I remember that opens a window inside the Tom-editor, it would not be her ?

  • Looks like it’s working, I typed in the prompt, result: None. Thanks I’m going to test in Atom now.

  • Simply now he put the underscores in red wrong text, this I do not want, as I take this feature ?

  • I think I got, in Settings, I unchecked the underline and reboot it was worth

Show 1 more comment

0

Linter PHP would be a good solution, but it was a temporary gambiarra. Thanks to Nuclide, a very active and powerful community adopted by Facebook, now what was just an editor, has turned into a true IDE. The community was already crying out for it.

To make your Atom Editor become an official IDE, it’s very easy. Come with me and follow the steps below:

Install the package Atom-ide-ui Install your favorite language pack. In this case, PHP: ide-php I wrote an article doing a review and a more cool comment of the Atom IDE tool. Visit this link for more information.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.