+ 1

Unformatted Comments in Sololearn Web

On the web version of Sololearn, many of the courses (honestly, all of them) seem to have a differently formatted comment section. As we know, the comments are a gold mine for new learners, because its always filled with code snippets and examples. Though, compared to the mobile version where all the snippets are properly formatted or indented, the web version seem to truncate all the spacing and new lines. This is only a small inconvinience, of course. But I just wanted to know if there is some quick fix to it, as I did not see a discussion related to it. Cheers! EDIT: The issue is that, all the comments appear conjusted. A code like import random num = random.randint(5,10) print(num) Appears as... import randomnum = random.randint(5, 10)print(num)

15th Jan 2023, 11:57 AM
Redtrobot
Redtrobot - avatar
9 Antworten
+ 1
Simply copy the examples and put them in the web code playground to format the code with a button press. Or use a beautifer.
15th Jan 2023, 8:45 PM
Chris Coder
Chris Coder - avatar
+ 1
There is no formatting in the courses comments section via the web site for me either. I've tried many browsers. No extentions. Here is an example. Left is mobile app. right is web https://ibb.co/yYCGttn
18th Jan 2023, 12:09 PM
Chris Coder
Chris Coder - avatar
0
@Mirielle Sorry for the grammar, I am a little poor on the language. What I meant by the issue was that the lines in comments are all bundled together, like if someone shows code example in the comments, the lines in the code will be gone. like a code: #inclue <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b; return 0; } would appear as: #inclue <iostream>using namespace std;int main() {int a, b;cin >> a >> b;cout << a + b;return 0;} Probably a client issue if it works fine on your system, but I am not sure what is causing this on mine. It's only a small problem, so maybe I will copy paste the codes on code playground. A good work around for now
16th Jan 2023, 7:51 AM
Redtrobot
Redtrobot - avatar
0
Mirielle Redtrobot What OS do you use?
18th Jan 2023, 12:13 PM
Chris Coder
Chris Coder - avatar
0
Mirielle is that tested in the courses comment section or in this disccusion only?
18th Jan 2023, 6:14 PM
Chris Coder
Chris Coder - avatar