Experts Exchange
--
Questions
--
Followers
Top Experts
for a couple of days, I see my code is just messing up when I answer a question, and use

it adds lost of lıne numbers left and right and code here is just unreadable...
look at this

check this
https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189803
when you click "select all" it selects the code, not those line numbers
and when you copy paste to another place you get the right code...
I checked different browsers and FF is also showing those messed up numbers...
is it only me, or everybody is having the same issue?
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
what you mean?
whenever I use that code snippet, everything is messed up...
started happening like 1 week ago...
now, all of my codes looks strange, with readonly line numbers scattered everywhere in the code...
Line 1
if contion then
do something
do something else
else
else do this
do that
end if
Line 2
Line 3lets see this...cannot do that with above code... strange






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;
I got the code from
https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189803
maybe some special character, like "//"

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
line 1
obj1.field1
obj2:field2
obj3:field3.field4no... not sure, how to produce it...but if it happens, I cannot fix it...
after post, all code is messed up...
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;should look like
not happening now...
confused... cannot reproduce...

got it from
https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189807
hex edit\ notepad++

dont see anything strange here...






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Can you do a screen video of what you are experiencing?
simple
go to this link
https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189803
copy the code
open code snippet here
paste and post/preview
that's all
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;I see this on screen now, but after post it will be messed up, I guess
no need for video, all steps are above...

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
If you see the feedback link at the bottom left of the footer, use that and submit to Kasey.
I did, they said "they are aware of it" but no idea what is causing it, how to re-produce it, how to fix it on my side...






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
1) Using "Visual" editor. Right click where you want to paste and paste as plain text, Then select what you pasted and select the code option. This is the result.
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;That was a direct paste from copying the code in your link.2) Set the the comment box to "Text" instead of "Visual". Plaste your code and again select the code feature or just wrap the code in mark down using
[code] code here [/code]
1) Using "Visual" editor. Right click where you want to paste and paste as plain text, Then select what you pasted and select the code option. This is the result.I am using visual editor all the time. if I do what you say, all text EOL lines and indent is lost
and here what is result
case "1": // Query 1 SqlDataSource1.SelectCommand = "select * from Table1"; break; case "2": // Query 2 SqlDataSource1.SelectCommand = "select * from Table2"; break; case "3": // Query 3 SqlDataSource1.SelectCommand = "select * from Table3"; break;

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
code here
</span> </blockcase "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;
2) Set the the comment box to "Text" instead of "Visual". Plaste your code and again select the code feature or just wrap the code in mark down using
code here
now, I use text, from the beginning...
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;
looks like this will be ok, but this is not the solution...
I want to use visual thing, that's why this editor is WSYGI






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;previous is what you asked for...this one is, I added code snippet first and pasted as plain text
lets see if this one works too...






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
"paste as plain text" works fine...
now I will try it with the link
https://www.experts-exchange.com/questions/29199746/ASP-Net-dynamically-add-custom-gridview.html#a43189803
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;
case "1":
// Query 1
SqlDataSource1.SelectCommand = "select * from Table1";
break;
case "2":
// Query 2
SqlDataSource1.SelectCommand = "select * from Table2";
break;
case "3":
// Query 3
SqlDataSource1.SelectCommand = "select * from Table3";
break;above is code snippet first + paste inside

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
"paste" does not work...
"paste as plain text" works...
Well, it is not an ideal situation but the workaround works.
The issue I believe lies in the froala editor. It just does not work well for code in the manner we want to use it. It is a real bear to work with.
That's why I asked for a video screen cast.I never used "paste plain text" before...
it was fine, till last week...
something updated on EE or froala editor...
but, why I don't see this in other posts?
is everybody using "paste as plain text"? I don't think so...
so, why just me?
can you re-produce the issue with "paste"?






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
I think enough of us have expressed concern and as they told you it is a known issue. All we can do is move on.
but
I dont want to, since I add screenshots and use styling a lot...
Experts Exchange
--
Questions
--
Followers
Top Experts
This is the Experts Exchange Community Hub. Check here for updates from EE and news about our community and members!





