Questions tagged [code-editor]
The code-editor tag has no usage guidance.
251
questions
0
votes
0
answers
11
views
Enabling Simultaneous Interaction with Code and Video at same window
I'm intrigued by the user experience in interactive coding tutorials, such as Scrimba, where learners can interact with both the video lessons and the code editor simultaneously. I'm eager to learn ...
0
votes
0
answers
10
views
I want to update the Ace code editor with uploaded file contents specially for python file
I have created a web-based code editor using the ACE editor on a streamlit, it creates the code editor box, and on top of it I have created the open file option where I am exploring the Python file, ...
0
votes
0
answers
13
views
My keyboard tab and spacebar button both are not working properly in vs code
I've faced this problem recently, when I press tab or spacebar button in vscode it doesn't add whitespace rather than it just blinking and not working properly.
My keyboard is alright I've checked all ...
0
votes
0
answers
21
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 ...
0
votes
0
answers
13
views
There are any extensions or techniques that allow edit text like code editing in VSCode, to enhance efficiency in editing text documents?
I want to know if there is an extension, complement o something to write text in text editors as you write in Vscode. For example: you write a sentence "My dog's name is Fluffy" you select ...
0
votes
0
answers
82
views
When using defineTheme and setMonarchTokensProvider, the default theme is overridden
When using defineTheme and setMonarchTokensProvider, the default theme is overridden
I introduced the cpp language pack, but I wanted to customize some hints and highlight them, but when I set them, ...
-1
votes
1
answer
43
views
How to view a field variable content in visual studio editor in design time when i do mouseover
Question is simple. I just want to know what's in the variable value(those are actually constants or have default value) in design time -NOT RUNTIME or WHILE DEBUGGING- in the Visual Studio editor ...
0
votes
0
answers
98
views
Sync Preview Scroll With Monaco Editor
I am building an online code editor that automatically scrolls to what I am working on in the preview and in the code. If I click on an element in preview, I will scroll the code. If my cursor on the ...
1
vote
0
answers
63
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
2
answers
566
views
How I create a code editor with custom rules in Angular 13
my name is Edu and I'm creating a web IDE for RISCV Assembly, I never worked with code editor in angular, I need to create some sintax rules, anyone know some component or library that facilitate for ...
0
votes
1
answer
151
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")...
0
votes
0
answers
52
views
How to add Ace code editor to a sphinx page?
I have the following RST file:
Title
=====
.. raw:: html
<body>
<div id="editor">function foo(items) {
var x = "All this is syntax highlighted";
...
1
vote
1
answer
205
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: '',
...
3
votes
1
answer
132
views
In VS Code what's the quickest way to replace a symbol on two consecutive lines when the proper "Rename Symbol" command does not work?
In VS Code (with the Haskell extension and HLS installed) I have the following Haskell file:
module Stuff where
myLen :: [a] -> Int
myLen list = case list of
[] -> 0
x:xs -> 1 + myLen xs
...
0
votes
0
answers
36
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
0
answers
24
views
Class, style,.. are always collapsed in VS Code [duplicate]
A few days ago the class, style,... atributes are always collapsed until I focus on them. (Look at the image)
I didn't really like it and I want to get the old look back.
For those who say, just ...
0
votes
0
answers
42
views
Looking For Lightweight Code Editor for Flutter Development
I am a computer science student and for my final year project i have to create a flutter app.
But the problem is my pc specs are too low 4GB Ram & Intel i5 4th Gen 🥲
So it's not good experience ...
0
votes
1
answer
219
views
How to set up code completion in RoslynPad wpf editor control?
I am a beginner level programmer, trying to create a code editor for C# with RoslynPad. I've added the editor control to my WPF window, and highlighting also works. I would also like to enable code ...
0
votes
0
answers
41
views
Can I make a header stick in wordpress by editing the header Code editor?
I am working on a wordpress website with the wordpress personal plan (no option to use plugins and no option to edit the CSS code). I assumed creating a sticky header in wordpress would be a matter of ...
0
votes
2
answers
1k
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 ...
1
vote
0
answers
83
views
Android Studio Method Parameters Folding
I'm studying Kotlin with JetPack Compose and there are a lot of methods with multi-line parameters block, as you can see on screen. But here is the problem: you can't fold this block, but you can fold ...
2
votes
1
answer
627
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.
0
votes
0
answers
119
views
Export selected images from google earth engine to my computer drive
Please ca anyone let me know if it is possible to export (download) images which I have isolated in google earth engine to my computer drive.
Here is the code I have used so far:
var l7 = ee....
0
votes
0
answers
81
views
GitHub Dev: Unable to authenticate session
I am having an issue with the GitHub web editor. Whenever I try to edit a file, the editor does not load and I am unable to make any changes, as it isn't authenticating my session. I have tried ...
2
votes
2
answers
390
views
How to implement custom code editor with HTML/JavaScript?
hello I'm trying to create syntax highlight in my web texteditor and my function is working and not at the same time I don't know why
when I type the word:
but in the editor:
this is the code:
const ...
0
votes
0
answers
16
views
ReactJs lang formatting in VS code
Every time writing React Code, I need to select the language mode to React Js mode then only I am being able to save the file even if the file is saved as .jsx.
reinstalling vs done.
reinstalling ...
1
vote
0
answers
337
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()...
7
votes
0
answers
445
views
How to wrap selected code in brackets/parentheses in Visual Studio 2022
In VS Code and JetBrains IDEs, when you select (highlight) a snippet of code and press an opening key for brackets ({ or [) or parentheses ((), it wraps the selected text. Visual Studio, however, ...
0
votes
0
answers
161
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
1
answer
94
views
How to add boiler-plate/default code snippet in ace.js code editor?
I am currently working on creating a code editor using ace.js. I want to add some boiler plate code every time page loads.
What I am doing till now it adding code snippet in HTML file itself like ...
0
votes
0
answers
42
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 ...
0
votes
0
answers
269
views
ACE editor integration in react application (JSX) - ReferenceError: window is not defined
I am new to react(JSX) and working on a POC where I have to integrate ACE code editor.
I have a parent component which has UI controls and a child component where I have added ACE editor code ...
-1
votes
1
answer
32
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 ...
0
votes
1
answer
100
views
Ace.js editor.getValue() output has extra whitespace
I'm trying to build a code editor using Ace.js and Electron.js. So far I have setup the editor and can write code in it. The problem arises when I try to save the code to a file. I have the following ...
-1
votes
1
answer
34
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 ...
3
votes
1
answer
184
views
Explanation of RAD Studio source code markers/visualizations
I was interested to know if the code markers shown at the end of some lines (see screenshot) are explained or documented anywhere (for RAD Studio 10.4).
I notice that the first 3 (for Halt, Continue ...
1
vote
0
answers
340
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 ...
1
vote
0
answers
327
views
@ngstack/code-editor Implementation problem
I'm trying to implement a code editor in the angular app.
I follow the steps on their page https://www.npmjs.com/package/@ngstack/code-editor
However, as soon as I open the page I got the "...
0
votes
1
answer
396
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-...
0
votes
1
answer
929
views
How to launch SPCK editor in termux using am command
I have made a bash file which makes a code command similar to that of VS code's code command.
I want to launch the SPCK editor to the specific project folder I want instead of opening the app from ...
1
vote
0
answers
183
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# ...
1
vote
1
answer
178
views
How to increase the font size of sidebar in Brackets code editor?
I am facing an issue in Brackets code editor. I am able to increase/decrease editor font size. But Sidebar font size is not changing anymore (screenshot attached). How can I fix it?
2
votes
2
answers
459
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 ) ;
...
-1
votes
1
answer
245
views
How can I output print commands from other languages to the custom component console in react?
I'm trying to create a code editor in react. I'm alredy done with outputting console.log value to my custom console component. I did this by overriding the console.log but now i'm stuck how to output ...
2
votes
2
answers
689
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 = "😷&...
0
votes
1
answer
842
views
Build a code editor with syntax highlighter using TextField in Flutter
I am trying to build Code Editor in Flutter app using TextField, I tried using flutter_syntax_view but the problem is, it only accept code as a predefined string text and it does not have any option ...
1
vote
0
answers
392
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
3
answers
3k
views
How Can I View Two html pages on live server in Visual Studio Code?
So I am trying to figure out if there is any way to make a visual studio code live server to display an HTML page I am currently on. What I mean is that when I create an HTML page it displays on the ...
0
votes
1
answer
382
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 ...
1
vote
2
answers
433
views
How to change part of a variable/function name in Vim [duplicate]
I usually have variables/function names like:
loginUser()
registerUser()
saveUserData()
checkBaggageTag()
So, as you see, some of them repeat the User word, and so when I copy paste and need to ...