F
F
Fortoo2019-06-30 15:46:52
Syntax highlighting
Fortoo, 2019-06-30 15:46:52

Sometimes when copying PHP code from the site, you paste it into sublime text 3, but the syntax highlighting shows incorrect characters or something. How to fix?

Sometimes when copying PHP code from the site, you paste it into sublime text 3, but the syntax highlighting shows incorrect characters or something. How to fix it? Or maybe re-save somehow. When you retype the copied code with your hands, then everything is fixed, but sometimes there is a lot of code and it takes a long time to retype by hand, and sometimes it is impossible to see the problem at all, but the code does not work because of this. The screenshot shows the simplest example, but this is an example of a difference and not working code (not working below)
How can I fix this automatically? Resaving in encoding does not help.....
5d18af1316e69073958116.png
For example, you can copy the code written there from the site https://opencartforum.com/topic/30917-resheno-vyvo...
Find by search

<?php foreach ($modules as $module) { ?>
<?php echo $module; ?>
<?php } ?>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question