PLEASE READ THIS BEFORE ASKING QUESTIONS - Formatting code! IMPORTANT!


#1

Hello, what i want to talk about is formatting your code. Obviously there has been a lot of issues lately on how to post your code.
People tend to post their code like this:

if(something=something){return
True}

I will explain how to make it neat for us to read it like this:

if (something = something) {
        return true;
}

Well there are two things to do:

First putting it in code-format

First way to put in code-format

Here we put three brackets ` around the code. Located right above your tab key

More practically you do this , look at how i did it and how it looks in the prieview screen:

Another way of putting in code-format

This one is preety easy, you just select over your code and hit in your keyboard CTRL+SHIFT+C , and it will work :smile: Please dont forget to implement this to your code as it will help us help you.


Second Beautifying your actual code to make it readble

To "Beautify "your code just go to : http://jsbeautifier.org/ . And format your code...
You can use http://www.dirtymarkup.com/ too For All HTML,CSS,JS formater

Note: I will repeatedly bump by code up so people can see this before they ask a question. Please dont post here since you will receive many notifications if you do so and i dont want to cause a spam on your account. If you want to add a suggestion to this post, please feel free to PM me about it.

Thankyou for reading and have an awesome day!


Tip Calculator- The Total (don't get it! #stuck)
Make sure you have at least four elements in myArray
.9 Ternary Conditional
11 Functions recap
6/15, Please, explain
Create your own Droid
Section 28 : Conclusion halp
The two ''this'' appear in red
Create your own Droid
3. Jumbotron -- Set the height
Where I have problem ? I don't understand who would save me
Adding js and jquerry to a file
.jumbotron p element styling problem? ( solved )
Unexpected Identifier
Oops, try again. Set the background-color of <div class="learn-more">..</div> to #f7f7f7
5/7 don't understand whats wrong
Who's in Your Bracket? isn't working
Having an issue coding string formating with %
JS Intro to Function 13. Conclusion ( rock paper scissors game )
Error :Oops, try again. Make sure you capitalize Math in Math.floor() and Math.random()!
19 - Review:built - in functions
Having a bit of trouble with the Make the head
Unit 7 Objects 31 Properties
3...And the Good:: Missing after for-loop initializer!
Social Network Profile - 5. Lists within lists
8. What if choice is scissors?
Filling Out the Cases What do I miss?
1.5 Tying it all together
Im stuck on 26
Not letting me console.log
2. old enough to play
Appending a value to a list (List and Dictionaries>Lesson 14)
Why is the function using the "this.property"?
Having trouble on 8
{ 7. What if choice1 is paper? }
Changing the background color of the <ol>
Explicit String Conversion
2.cant find the problem
Don't work?
More on Control Flow in Javascript
17/19 A REAL WIN- please help
Java Methods II error
What is wrong with my code for 12. Or
Intro to Functions, Lesson 4 - right and wrong at the same time
Exercise 8
I'm stuck at HTML Basics - Making Comments
Exercise 7. installApp ||| - button isn't changing to Uninstall
Formatting a topic
Learn AngularJS --- Attach promo to scope
Problems with 4/6.redacted
Capturing characters within a string
Why do I need tags?
Everything
Constructors in Review
5. I am stuck on what to enter when it asks" What is your first name" in the box at the right
Height of the Jumbotron incorrect
8. What if choice1 is scissors? I don't understand what is wrong with my code! Please help me!
12 Funtions if/else
#5

I'd recommend re-doing the second picture and write the text on in a text box, like you did with the first picture, rather than writing it with a mouse. :slight_smile: nice post though!


Hover code not working!
Computers are smart(er than me)!
What is the HTML Tag Really?
Why do I need tags?
#7

Thats because his code worked for me. And the only solution was to refresh and wait time...


#8 I am stuck on Accessing Properties!
What is wrong?
Code not working
5/6 logical operator help needed
While loops 1/1
Exercise 9, Something of Value
More Variable Practice: How to solve it?
Oops, try again. Set the font-family of the h3 elements inside <div class="learn-more">..</div> to 'Shift', sans-serif?
BUG: Can't get past jQuery 11
Logical operators
Need Help,i'm trying to create a table header title but whenever i click on the save & submit code it says something like this Oops, try again. It looks like your table header is empty. Give your table a title by writing it between the <th> and </th> tags
11.8 'return' outside function and Did you accidentally delete my_car?
Having difficulty with the font family exercise 10
13/19 Not Again!
17 review functions codecademy
What if Choice 1 is scissors? Having some trouble
HTML Basics II 8 (Font Size) 'It looks like 16px'
#10

#11