Ask your own question, for FREE!
LaTeX Practicing! :) 16 Online
geerky42 (geerky42):

Practicing...

TheSmartOne (thesmartone):

Testing...

geerky42 (geerky42):

``` def sum(n): total = 0 for x in range(1,n): total += x return total ``` Hmm how to indent line?

OpenStudy (greencat):

\[\Huge\cal\color{pink}{G}\color{red}{E}\color{orange}{E}\color{yellow}{R}\color{green}{K}\color{blue}{Y}\]

OpenStudy (greencat):

How's that for your signature?

OpenStudy (greencat):

Use ~ as many times until you get a satisfactory amount of spaces to look like an indent.

TheSmartOne (thesmartone):

@geerky42 25 medals from the asker to get to 99 :D

OpenStudy (greencat):

How did you do that? How do you make a box and how do you put color in the box?

geerky42 (geerky42):

You can make grey box using ` (above tab key) Color is just done by itself. this grey box identifies code tag.

geerky42 (geerky42):

`` for single line ``` ``` for multiple lines.

OpenStudy (greencat):

`What is a code tag?`

OpenStudy (greencat):

`Geerky` in a box. >:D

OpenStudy (greencat):

I was always doing 'words' ^^ wrong symbol.

geerky42 (geerky42):

I don't know correct term for it, but it just certain code used to make something and not just variable or string or any input. Don't know how to explain, man... lol

geerky42 (geerky42):

Cannot wait for 99 SS :D

OpenStudy (greencat):

how do you make multiple lines with `` and ```? Could you give me a color code example?

geerky42 (geerky42):

``` def foo(): ~~~~print('haha') ``` ~ doesn't work :/ you just need them separated by line. two ``` cannot be in same line.

geerky42 (geerky42):

Like, ``` `` ` anything here `` ` ```

TheSmartOne (thesmartone):

\(~~~~~~~~~~~~\) `def foo():` \(~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \) `print('haha')`

OpenStudy (greencat):

\[\color{olive}{ http://prntscr.com/5av57x }\] \[\LARGE\color{olive}{Calvin~is~watching~you.}\]

geerky42 (geerky42):

No, I want indent inside gray box. ``` like that haha ``` but with tab space, not regular space.

OpenStudy (greencat):

http://prntscr.com/5av57x Just check it out. No creepypasta, I promise.

OpenStudy (greencat):

Can you show me the color code, but without `? So, like, show the color code outside of the box so that I can see it.

geerky42 (geerky42):

TheSmartOne (thesmartone):

Well inside the boxes you can't indent because then it will only show you the code right?

geerky42 (geerky42):

Color is done by itself, I didn't add anything... color changes if it detect input, or code tag or whatever it is called. Well, some programming languages are indent-sensitive, like Python. Some lines need to be indented. I would like to show that in grey box, but not with regular space eww yuck.

OpenStudy (greencat):

so like `#080000 gosling`

geerky42 (geerky42):

@TheSmartOne Any idea? com'on you are the smart one lol!

geerky42 (geerky42):

Well, I don't know how to change color in grey box manually.

OpenStudy (greencat):

``` print('Green Cat') ``` Ok, I get what you mean... It's done automatically.

TheSmartOne (thesmartone):

^^ you can't ``` \(\color{orange}{Green}\) Hi ``` It will show you the code...

TheSmartOne (thesmartone):

Wait let me find it I think I saw someone ask.

OpenStudy (greencat):

No, it detects words and puts color to them.

geerky42 (geerky42):

" you can't"

TheSmartOne (thesmartone):

Here i think this will help :D http://openstudy.com/study#/updates/545c1063e4b052b0143ccc73

geerky42 (geerky42):

I mean indent in grey box. Like for example: ``` def foo(): print("haha") ``` what I did to second line. I use regular space to indent second line, but I want to use tab space. But if I press tab, it goes to "Post" button. I was like "No, I want tab space!" I can copy and past tab space from somewhere but ehh...

TheSmartOne (thesmartone):

Tab is like 5 spaces right?

TheSmartOne (thesmartone):

^^ not yet..

geerky42 (geerky42):

Well tab space and regular space are different character. I guess for now I use regular space, it annoys me a little, but we cannot tell the difference lol.

TheSmartOne (thesmartone):

:D

OpenStudy (greencat):

Tab is like 3 spaces. But tab doesn't work on browsers.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!