Skip to main content

All Questions

Tagged with
0 votes
1 answer
61 views

backspace and formatting in form input

Im working on a school project, creating a "webshop" (its just for practice - not real). Im trying to format the input for the users card number so that it looks like: 1234 5678 9101 1112. ...
Albertpinn's user avatar
1 vote
1 answer
974 views

How can I format Pino logger output in the browser console?

I am using pino with next.js. I have the following config: import pino from "pino" import { Logger } from "pino" const baseLogger: Logger = pino({ level: process.env....
Undistraction's user avatar
0 votes
0 answers
55 views

Javascript formula to math.js formula format

I used Maple 2024 to find some big expressions which I want to use in Javascript for further calculations. In total there are 20 big expressions which I have in the format of Latex and Maple. The ...
Yannick Bot's user avatar
0 votes
0 answers
21 views

How can I set formatters for more than one column in React-Google-Charts?

Trying to use React Google Charts, I am facing a problem when I want to format several columns. In all the examples I found on the web, only one column is formatted through one of these two methods: ...
azap's user avatar
  • 1
0 votes
1 answer
234 views

Sometimes the "printWidth" option in "prettier" is applied, but sometimes it is not

How to reproduce the phenomenon Install "Prettier - Code formatter" extention in Vscode write file .prettierrc { "tabWidth": 2, "singleQuote": true, "...
dom wis's user avatar
  • 29
0 votes
2 answers
57 views

How to create an input field with a predefined format where users can only type in specific parts of the field

I have a basic HTML input field (for phone numbers), that currently lets the user type and submit whatever they want inside: 923-98-Ilovekittens :3 However, I want the field to look like this: +1 (...
Tony Moritz's user avatar
0 votes
1 answer
58 views

XmlHttpRequest file (image) <=> raw data reformatting?

I have downloaded some basic image somewhere from google: this picture looks like: then I use this httprequest to read and save raw data of the image: var xhr = new XMLHttpRequest; xhr.open(&...
Jiri Zaloudek's user avatar
0 votes
1 answer
205 views

Setting a Custom Format Script for a specific alphanumeric value (ex. FM000-0000)

First, I am a novice at JavaScript, but eager to learn - so suggestions of good books/avenues for teaching myself would be greatly appreciated! I am trying to build a .pdf form that uses a specific ...
SnakeDoctor's user avatar
0 votes
0 answers
22 views

Intellij Idea indent the content of an anonymous function within template literals

How can I prevent what is inside my anonymous function from being identified "correctly", or failing that, I can identify it manually? I shared an image because an image says more than 1000 ...
Edgar Gc's user avatar
  • 159
1 vote
1 answer
82 views

Building a tree structure JSON from flat file with JS

So I am pretty new with JS and using loops to get data formatted in a JSON tree from a flat file. I am trying to build an SAP UI5 app and load the data into a tree table. I have this data roles: [ ...
user3369908's user avatar
1 vote
1 answer
79 views

In VSCode, how can I add comment characters spanning the length to the end of my vertical ruler? Is this possible?

I often separate blocks of code using comment characters spanning a specified distance horizontally. The character depends on the language, but for the sake of this example I'm using JavaScript and ...
fmotion1's user avatar
  • 541
0 votes
1 answer
47 views

(JavaScript) How to split a paragraph string into lines without - str.split(/\r\n|\r|\n/g);

My program is supposed to take in a string and split it into an array of diffrent lines.The format of the string is shown bellow (it has no explicit \n, just a new line created through the enter key). ...
Evan's user avatar
  • 45
0 votes
1 answer
97 views

Change date format Google charts

I have a timeline chart using the google charts tools, and I have adapted it to fit my necessities, but one thing that I still haven't got to work is the date format on the graphic label. As you can ...
Seenzz's user avatar
  • 13
0 votes
1 answer
418 views

Handling european decimal format in Svelte input component: synchronization and parsing sssues

I am writing an input component in Svelte. I have encountered a problem. My application is intended for the European market. In Europe, we use a comma as decimal separator. The problem is that if the ...
zerakot's user avatar
  • 93
-1 votes
1 answer
85 views

How do I format a code block in markdown?

I get a response from the server which is in a string format, I want to render it with the proper formatting for that language, and not be a single line code. the response from the server `let ...
DoniNx's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
52