Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

theEric

How do some people have code in a box? I feel like I knew and used this at one time, but I now forget. The box is shaded dark gray and text appears normal. Thanks in advance!

  • 9 months ago
  • 9 months ago

  • This Question is Closed
  1. thomaster
    Best Response
    You've already chosen the best response.
    Medals 1

    `i think you mean these boxes? :P` You can create them by writing your code or text bewteen 2x ` It's the same key on your keyboard as the ~ above the tab and below the Esc button.

    • 9 months ago
  2. theEric
    Best Response
    You've already chosen the best response.
    Medals 0

    `ah, thank you!` `public static void main(String args[])`

    • 9 months ago
  3. theEric
    Best Response
    You've already chosen the best response.
    Medals 0

    Is there any feature that colors code for specific languages? I think \(\LaTeX\) can do it. I'll research. Thanks!

    • 9 months ago
  4. thomaster
    Best Response
    You've already chosen the best response.
    Medals 1

    \(\Large\LaTeX\) can probably do that but not here :P This site uses mathjax, and there are only limited functions available.

    • 9 months ago
  5. thomaster
    Best Response
    You've already chosen the best response.
    Medals 1

    But you can color your code manually

    • 9 months ago
  6. theEric
    Best Response
    You've already chosen the best response.
    Medals 0

    Okay, thanks!

    • 9 months ago
  7. thomaster
    Best Response
    You've already chosen the best response.
    Medals 1

    `\(\color{>color<}{text}\)`

    • 9 months ago
  8. theEric
    Best Response
    You've already chosen the best response.
    Medals 0

    Gotcha! And I can't use mathjax in the `s, right? `\[\]` So I do it normally and in \] or \) and color it. Thank you!

    • 9 months ago
  9. thomaster
    Best Response
    You've already chosen the best response.
    Medals 1

    You can also use ``` Some code will be colored, like this: ``` <html> <body> <h1>hello</h1> <script language="JavaScript"> document.write("Hello"); </script> </body> </html> ``` ``` public class Hello { public static void main(String [] args) { System.out.println("Hello"); //comment } } ```

    • 9 months ago
  10. theEric
    Best Response
    You've already chosen the best response.
    Medals 0

    Thank you! I thought OS had a feature like that!

    • 9 months ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.