246 questions
1
vote
1
answer
82
views
Why is codepen or jsfiddle and internet browser giving different results and is there a way to fix it?
I am attempting to learn JavaScript and am doing edabit challenges.
To help me work out whats going on I use codepen.io
I was using the following code and wanted to get the index of the second ...
1
vote
1
answer
80
views
Replacing automatically-highlighted code across several lines in IntelliJ
IntelliJ has a feature where (a) you select part of one line, then (b) IntelliJ immediately and automatically highlights that same text that happens to exist is multiple lines of similar code in that ...
0
votes
1
answer
881
views
Not able to use the extension in the SageMaker Studio Code Editor in VPC-only mode
I recently updated to the new experience of SageMaker Studio. When I opened the code editor, the extensions that are pre-installed in the official image were grayed out and unusable, as shown in the ...
0
votes
1
answer
130
views
Written VBA coding not showing in Outlook
All of a sudden i am now unable to view VBA codes i have written in Outlook. Macro security also enabled for all macros. Anyone know how this can be resolved and me to see all coding again?
VBA code ...
0
votes
1
answer
673
views
How to Create a Custom Language in Monaco Editor for Inline CSS (Without Selectors or Brackets)
I am working on integrating Monaco Editor into a project and need to customize the CSS language support for a specific use case. My goal is to adapt the CSS language mode for inline styles, similar to ...
0
votes
0
answers
106
views
How to add code folding for codeeditor example of pyside6?
https://doc-snapshots.qt.io/qtforpython-6.2/examples/example_widgets__codeeditor.html
I'm trying to add a code folding area to right of line number area for brace pairs if pairs located at different ...
2
votes
1
answer
754
views
Host Visual Studio Core Editor as a standalone editor Control inside WPF app
I want to host Visual Studio Core Editor as a standalone editor inside my C# WPF app. At present I am using AvalonEdit in the project. I want some more features and more sophisticated editor. Is it ...
2
votes
1
answer
1k
views
How to load my own custom python packages into Pyodide using javascript?
//fileSaver is used to save the code to a file and download it
const fileSaver = require('file-saver');
// Setup ace variables and the output pane for pyodide
var editor = ace.edit("editor")...
1
vote
1
answer
540
views
how to reset @ngstack/code-editor on button click?
I am using @ngstack/code-editor in my component, after form submit i want to clear the editor,
below is the configuration
theme = 'vs-dark';
model: CodeModel = {
language: 'html',
value: '',
...
0
votes
0
answers
50
views
On File Move the curly brace layout changes - why?
I have Visual Studio 2022 and Resharper (latest versions). My Code style for curly braces is:
if(true) {
//....
}
!!! While typing end editing code everything works great !!!
But as soon as I ...
0
votes
2
answers
3k
views
How do I get my neovim settings to work properly and actually save
I just installed nvim for the first time, this is also my first time using a terminal based code editor, and I'm migrating from VSCode (ik it's going to be hard),
and now I'm configuring it, I'm ...
2
votes
1
answer
1k
views
Disable annoying red text highlight in visual studio 2022
Does anyone know how to disable this red text highlight when selecting text in quotes using visual studio?
I don't know what to try.
1
vote
0
answers
458
views
Failed to fetch in Excel Office Web Script
I'm getting a Line 15: Failed to fetch error without further details.
This is my script in Excel Web.
async function main(workbook: ExcelScript.Workbook) {
let sheet = workbook.getActiveWorksheet()...
0
votes
0
answers
214
views
How do I generate only positive NDVI values from Google Earth Engine for my study area?
Please, how do get positive values of NDVI for my study area?
Please see my Javascript code below. Unfortunately, after running the code, the NDVI chart generated are mostly negative. (See image ...
0
votes
0
answers
61
views
How do I make multiple cursors in VS Code, one for each attribute of an HTML tag?
Let's say I have something like this
<Button color="secondary" className='circular-btn' fullWidth>
and I want to use a keyboard shortcut to have a cursor before color, one before ...
-1
votes
1
answer
39
views
I cannot find rather popular code (and maybe text) editor
I've seen text/code editors like this a lot of times, but I still didn't find what's the text/code editor is this? Can you help me?
This is that text/code editor
Hope I'll get answer with no ...
-1
votes
1
answer
141
views
I need a WordPress plugin that can create an IDE for codes to run on my website
I have a WordPress site, and I teach python on it and I want to share some code on it. I want a code editor that users can see my code and run it.
Please if you know any plugin that can do this help ...
2
votes
0
answers
511
views
Yjs y-webrtc simple peer issue (Yjs + codemirror 6, sync content among editors)
I am using Yjs with codemirrow 6 in my project. I followed codemirror 6 examples and Yjs codemirror.next example (https://github.com/yjs/y-codemirror.next) in github.
And when I ran it, I got this ...
0
votes
1
answer
766
views
Regular expression to match strings for syntax highlighter
I'm looking for a regular expression that matches strings for a syntax highlighter used in a code editor. I've found
(")(?:(?!\1|\\).|\\.)*\1
from here regex-grabbing-values-between-quotation-...
1
vote
0
answers
233
views
How to show syntax error for C# in codemirror?
I have looked into the addons for lint and hint in codemirror, but they only support a couple of languages. I am using angularjs to implement codemirror C# editor. How can I show syntax errors for C# ...
3
votes
2
answers
832
views
Does IntelliJ have feature for adding (or removing) 'this.' prefix in front of appropriate points in the code shown in code editor?
Some people like to omit the this. prefix to calls, such as:
addColor( Color.PURPLE ) ;
… while other folks prefer to include explicitly the this. prefix, such as:
this.addColor( Color.PURPLE ) ;
...
2
votes
2
answers
1k
views
Stop IntelliJ code editor from escaping pasted string literal characters
What I want:
String x = "😷" ;
What I get in Apple TextEdit 1.16 text editor app when clicking 😷 from the macOS "Show Emojis & Symbols" floating windoid:
String x = "😷&...
1
vote
0
answers
571
views
How can I use atom to format code just like in vscode?
In vscode, I can format cpp code just use Alt-Shift-F or Ctrl-Shift-I (btw., I have installed plugin C/C++).
And that style is my favourite. :)
Before:
#include<iostream>
using namespace std;
...
0
votes
1
answer
520
views
Is it possible to simple-react-code-editor as a Formik field component?
Trying to get this form field component to take a simple-react-code-editor:
not sure if I'm going about this the right way by trying to pass props form the useField hook, but it works for textfield ...
0
votes
1
answer
2k
views
Filter the sidebar in VS Code to only show certain folders
I find myself in a situation where let's say I'm working on something to do with Cats, and I want the siderbar of Vs code (where it lists a directory of folder/files in my project), but filtered to ...