what is the script editor thingy
-
what language is the script editor thing? is it python because the colors seem to correspond to a command
for i in range(10): print('hi')
-
I’m a beginner at Python, but it looks like Python to me.
-
It's great that you noticed this feature and are exploring the forum!
This is called a "fenced code block." When you click on the </> button and get the automatic ``` prompt, this means that you are able to type code for the purpose of showing and demonstrating code commands (not for the purposes of rendering the code).
Suppose I wanted to tell you how to type a math symbol, like \(\frac{360^{\circ}}{2}.\) How would I show you the commands for typing \(\frac{360^{\circ}}{2}?\) Whenever I type \(\frac{360^{\circ}}{2},\) it just shows as math instead of the actual keystrokes that I want to show you. So, how would I do it?
With a fenced code block!
\\( \frac{360^{\circ}}{2} \\)
The above is the code for \( \frac{360^{\circ}}{2}!\)
If you're wondering what language these commands are coming from, it's a special language used for styling text on the web called \(\color{red}\text{markdown}.\) Learn some very basic markdown commands on this site, and you'll be able to quickly make your posts look more alive and clear!
You can also learn some quick and easy Latex commands for typing math, like the \(\frac{360^{\circ}}{2}\) example and more, in this how-to post!
-
Discord has some Markdown elements that's how I know some of this lololol
-
@The-Darkin-Blade haha
-
haha DO NOT RUN THIS CODE
while True: print('this message will never end')
-
@userusername said in what is the script editor thingy:
haha DO NOT RUN THIS CODE
while True: print('this message will never end')
haha it doesnt work because the print is not indented
-
This post is deleted! -
import time
time.sleep(360)Time stops working because it went to sleep .
-
but what about latex in AoPS
-
@userusername on aops, u can just use $ as well as $$ to center it. on here instead of using $ you have to use this (quote to see):
\(2+2=4\) -
how does aops work
-
@The-Rogue-Blade ...