I
I
Ilya Beloborodov2017-12-18 14:34:06
JavaScript
Ilya Beloborodov, 2017-12-18 14:34:06

What needs to be configured in PhpStorm so that the js code is highlighted normally?

There is such a code, it is working, but phpstorm displays an error

function swalMask(title, action) {
      swal({
        title: title,
        type: "warning",
        confirmButtonText: "Да",
        cancelButtonText: "Нет",
        showCancelButton: true,
        closeOnConfirm: false,
        showLoaderOnConfirm: true
      }).then((result) => {
        if(result.value) {
            
            }
        });
    }

screen joxi.ru/Vm6KezeSxWvpY2
where you need to click, what would be displayed normally?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Kublyakov, 2017-12-18
@kowap

Settings > Languages ​​& Frameworks > JavaScript and select JavaScript version ECMAScript 6

M
maxsnw, 2017-12-18
@maxsnw

so look at what it swears at, there should be a red highlight on the scrollbar on the right or when you hover over an error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question