423 questions
3
votes
1
answer
148
views
Plotly changes font size in 3D plot when updating via Dash
I am trying to create a 3D plot with plotly. In the plotting area, I want a grid of floating text annotations.
This is my MWE:
import plotly.graph_objs as go
import dash
from dash import html, dcc, ...
2
votes
2
answers
175
views
PowerShell Output Formatting | Equal Spacing?
I have spent about 2 hours today working on a script to query specific Domain Controllers on the network, then verify if a service account is locked or not. And before anyone asks, I am aware of the ...
0
votes
1
answer
93
views
How to preserve text styles (bold/italic) and extract footnotes from a Word document using Python?
I’m working on a Python script to extract content from a Word document (.docx) and insert it into a SQL Server database. The challenge is that I need to preserve text styles like bold and italic, as ...
0
votes
0
answers
144
views
Quill.js Resets Text to Normal on Enter Instead of Keeping Selected Size
I’m using Quill.js and need to:
Make "small" the default text size when the editor loads.
Ensure the text size persists when the user types.
Keep the selected size after pressing Enter (...
0
votes
1
answer
99
views
formating text to a new field in foundry contour
I need to transform text from one field to a new one. Currently the TEXTVALUE is "202411219999".
The NEWVALUE to obtain must be like this: "2024-11-21"
I managed to use substring(&...
0
votes
4
answers
71
views
How to use lapply on strings so that they end up grouped together?
The actual issue: I'm trying to rearrange a bunch of names, street addresses, states, etc. into a nice list of addresses without any weird bracketed [row numbers], quotation marks, awkward breaks, etc....
-1
votes
3
answers
45
views
reformat short per-line data into a(n indexed) tabular layout to fill my terminal
I have a text file containing a small piece of data on each line: Maybe it's a word, or a single number. For simplicity let's assume there are no empty lines and no headers within that file. For ...
0
votes
0
answers
305
views
Automate git commit message formatting regardless of editor
I use vim to write my commit messages, which means they get formatted "the right way" automatically. That is, as I write, my messages are formatted more or less as described in the classic ...
1
vote
2
answers
62
views
Aligning strings in the terminal with c#
I am looking for a little assistance. I am new to C# and am trying to build a simple addition/ subtraction game for my kid to practice his skills. I have the basics working (more to develop on it) so ...
0
votes
1
answer
367
views
Recognizing tags in the Text property of a TextBlock element in a WinUI 3 application
I know that the text of the TextBlock element can be formatted (italic, bold, underlined, etc.) using both C# code and XAML markup, which is very convenient. Here is an example from the MSDN site.
<...
1
vote
1
answer
273
views
Underline the header using forestplot
I'm trying to underline my headers for my columns of my forestplot, which I've created with the forestplot() function from the library(forestplot) package.
this is a excerpt of the settings i already ...
-3
votes
1
answer
1k
views
Format text as like WhatsApp or stackoverflow (Replace symbols to style as bold, italic, and strikethrough in text)
*this text is bold*,
_this text is italic_,
~this text is strikethrough~.
~_*this text is bold, italic and strike-through*_~
I want these text to be presented as,
<b>this text is bold<...
1
vote
0
answers
234
views
Disable automatic text wrapping within custom word pattern in Vim
Vim/neovim's automatic line wrapping feature is great for writing reports in Markdown, but sometimes it kicks in when I don't want it to. Is there a setting somewhere that I can set a regex pattern to ...
0
votes
2
answers
1k
views
Flutter input formatting in textformfield
I'm trying to format textformfield while typing. I've managed to get it working...well sort of. Currently the textformfield takes in number and works like this:
user types in number for example "...
3
votes
3
answers
3k
views
Restrict leading zero in TextFormField in Flutter
Currently, I'm looking at a TextFormField restriction.
My requirement is
Allow single 0 in TextFormField
If it is 099, I want to remove the leading 0. So, it's 99
Do not allow symbols or special ...
-2
votes
2
answers
2k
views
How to copy every line in text file containing substring
I have a text file I've been viewing in visual studio code:
here is one line
problem path: path1
another line
value line more info
value
problem path: path2
incredible data line
problem path: path3
...
2
votes
1
answer
350
views
Format raw text (from Google Forms response) into rows and columns in Google Sheets and append sheet
I have a Google Forms where I'm capturing data in the following format.
Name:Karslten [0023]
Level:1
You managed to complete:
Burpies:30
Squats:45
Bench:29
Crunch:43
TotalLoss: 981
Name:Jaeger [0119]
...
0
votes
1
answer
551
views
How is the height of an inline text element calculated when the browser zoom changes?
So the actual height of an inline text element is not simply the font-size value, but is determined by the individual font's metrics, as explained in this answer (see also this article).
So for the ...
1
vote
1
answer
53
views
Reformat text with arbitrary newlines into rows of equal length
Sorry that this is probably a really basic question - it seems like it ought to be easy, but I just can't figure it out.
I'm trying to write a function that, given a stream of alphabetical characters ...
4
votes
1
answer
3k
views
Change timestamp variable format or do replacement
I am currently working on setting up ci/cd pipeline for pushing nuget packages.
I want to use the built-in CI_COMMIT_TIMESTAMP for version suffix however its ISO 8601 format is not valid for this.
...
3
votes
2
answers
20k
views
How to bold text in c program
How do I Bold my PrintF? .. ( I am new in C)
#include <stdio.h>
int main() {
int i;
for (i=1; i<=5; i++) {
printf("Md.Mehedi hasan");
}
return 0;
}
1
vote
1
answer
951
views
Function to insert a HTML element separator every X lines of text (dynamic pagination, just like in a professional text editor)
Working on a responsive white paper for an open-source project.
Research has proven that this challenge has yet to be taken down clearly by anyone on the internet.
My original intention was to create ...
1
vote
1
answer
2k
views
Style Property of TextSpan Widget in Flutter
I am working on a route that displays information about my flutter app. I've used RichText and TextSpan widgets in order to display inline hyperlinks to my email and github repo. This made it easy to ...
0
votes
0
answers
566
views
My paragraph comes in one line instead of multiple lines as input by the user in a HTML text. I want my paragraph in the same format as input by user
This is my html code:
<td>
<pre style="white-space: pre;" id="Comments" class="value">
text here
</pre>
</td>
I have used pre tag to take care of ...
1
vote
3
answers
1k
views
How to decrease the line spacing in this python program?
I was learning nested loops, and ran into this problem with line spacing between each of x's lines.
numbers = [2, 2, 2, 2, 7, 7]
for i in numbers:
for j in range(0, i):
print("x"...