editor

How to detect and stop an infinite loop in user-provided JavaScript code?

家住魔仙堡 提交于 2020-08-27 07:19:19
问题 I am writing an in-browser code editor for games. The editor will allow users to write their own JavaScript files, which are then loaded into the same DOM that the editor is running on. This will allow them to see the game in a canvas element next to the code and update it every time they save. The editor is aimed at people who are new to JavaSript, and it can be easy to accidentally get an infinite loop. If possible, I want to set up my editor such that if a loop executes too many times or

Mysterious number icon next to file name in PhpStorm [closed]

我的未来我决定 提交于 2020-08-24 05:14:05
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question I accidentally pushed a hotkey in PhpStorm, and now there is a little number icon next to one of my file names. What does this mean, and how can I remove it? Here's a screenshot: 回答1: What does this mean That's a Bookmark with Mnemonic -- basically, a numbered

Mysterious number icon next to file name in PhpStorm [closed]

末鹿安然 提交于 2020-08-24 05:13:31
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question I accidentally pushed a hotkey in PhpStorm, and now there is a little number icon next to one of my file names. What does this mean, and how can I remove it? Here's a screenshot: 回答1: What does this mean That's a Bookmark with Mnemonic -- basically, a numbered

PhpStorm array is not closing on line start

只愿长相守 提交于 2020-08-11 03:16:22
问题 I edited the code styles settings some time ago but I "broke" something about the short array syntax which I can't find how to fix. For example, let's say I call a function and pass an array: my_func([]); If I press Enter to write array elements on multiple lines, I get this (which I find awful): my_func([ ]); What should I change in the settings in order to get my array like this: my_func([ ]); I'm on PhpStorm 2019.3 on Ubuntu. EDIT : here is the export of the settings: <code_scheme name=

PhpStorm array is not closing on line start

别来无恙 提交于 2020-08-11 03:14:36
问题 I edited the code styles settings some time ago but I "broke" something about the short array syntax which I can't find how to fix. For example, let's say I call a function and pass an array: my_func([]); If I press Enter to write array elements on multiple lines, I get this (which I find awful): my_func([ ]); What should I change in the settings in order to get my array like this: my_func([ ]); I'm on PhpStorm 2019.3 on Ubuntu. EDIT : here is the export of the settings: <code_scheme name=