A
A
Andrey Ovchinnikov2016-02-03 01:00:20
Sublime Text
Andrey Ovchinnikov, 2016-02-03 01:00:20

In Sublime Text 3, after typing try {} catch () {}, all the text below is rendered in white. How to deal with it?

When using the try {} catch () {} construct in PHP, I encountered the fact that after entering it, all the text below becomes white, i.e. color selection is completely reset.
Moreover, it becomes so only after entering brackets () after catch.
Has anyone experienced this and how can it be overcome?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-02-03
@sprav89ru

You need to write something in these ()

try {
} catch (Exception $e) {
    echo 'Выброшено исключение: ',  $e->getMessage(), "\n";
}

It will be ok

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question