Change language of repl
If I had a Python repl, how can I change the language to HTML without deleting it?
Just add a file and put .html at the end, viola! Html is not a file. You could delete the python after that if you want to
You could make a .replit
file, add the following code: run = "html {filename}.html"
. Just replace the {filename}
with the html file name and you should be good to go.
Hope this helps!
@JBloves27 it just says the command isn’t found
@ruiwenge2 I'm not sure if you can do that but view this replit here. It's called 'Python but it's JavaScript' Here's the link: https://replit.com/@RayhanADev/Python-but-its-Javascript?c=79349
Hope this helps.
I don't think replit has an option to do that
You can jank you way around it like the other people said, but it's much better in the long run just for you to copy and paste the code into an actual HTML repl
Make a new repl (HTML in this case), and copy/paste your code into the new repl.
@MadMath123 no look at the question, i meant how to change the language of the same repl
add a file called .replit
and add language="html"
to it
@ruiwenge2 replit says: run = "echo hello world"
@ch1ck3n if a chicken is a chicken then what is a ch1ck3n
@ch1ck3n EPIC comeback right there
@ch1ck3n are u a potato or a chicken god?
@ch1ck3n so ur the poch1ck3n god?
@ch1ck3n gulp nervous --> silently worrying
@ch1ck3n @ruiwenge2 well say say I'm talking to 2 of the greatest legends on replit. wow
@ruiwenge2 well sort of also how did u get so many cycles dude(or girl, lady, man, boi, boy, person, human, alien, elder, for that matter)
@ch1ck3n GOSH this man is insane. he should be the most popular person on Reddit
@ch1ck3n dude im like legit chatting so hard to grind for cycles exhausted
@ruiwenge2 @ch1ck3n dang this chat is so long
@ruiwenge2 legend in the python community with @ch1ck3n
@ch1ck3n SHEESH!
According to Linus Torvalds:
"Long chats = great programmers." (he never said that tho)(im only making it up to comfort my sad soul)
@ch1ck3n um bye gtg
@codingjlu what a cacophony of annoyingness
@codingjlu "use to use it" 🤔 is that even common sense?
@codingjlu facepalm
Super long answer: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!! OK, why? Well, there is always going to be a file that the console looks for, like index.html
for HTML and main.py
for Python, and if it doesn't find it, it won't run.
The only way to change the file is to delete the existing ones, then add a new one in the language that you wanted, but then it will say repl died unexpectedly
because it can't find the main file.
Short answer: no. Long answer: noooooooooooooooo. You can't. Just copy and paste the code, or put your code on Github, clone it, and select your language from there.
@codingjlu I feel like I'm the only person on replit who doesn't use github sad
@Aphmeta @codingjlu i dont have lol becauee i dont get the point of having github when i have replit
@QuantumCodes because it's gud
@codingjlu uhmm.. its the same as replit right? Just with better collaboration features? Anyways i dont have enough knowledge to contribute anywhere
@QuantumCodes on github you can't run code. It's famous for free storage, open source projects, and its git features.
@codingjlu i cant run then no use of storage,.
@codingjlu replit has git, code saving, collabing... then i dont see any use on github
@QuantumCodes Replit doesn't have Git, nor does it have unlimited storage.
@codingjlu version control = git? I have in python repl.. https://replit.com/talk/learn/Replit-Git-Tutorial/23331
@QuantumCodes version control !== GIT.
@QuantumCodes also, that's replit connecting to github, so in the end it's still github
@codingjlu lol, but i am able to use without connecting my account..
@QuantumCodes what lol git what do you mean? I think you're not talking about git.
@codingjlu ok nevermind... leave this arguement. I was talking about: i am able to use version control without connecting to github
@QuantumCodes ok :P
@QuantumCodes ya me too :D
@Aphmeta I don't use Github.
@Bluelight4251 lets go! we got another anti github person
@codingjlu its a hosting website thingy where people share code but cant run it
@ruiwenge2 we should improve our project xD
@ruiwenge2 yay
@codingjlu what is git im dumb dumb
@codingjlu I freakin dont have google im in china for the summer
@codingjlu ...
@Aphmeta I don't have a GitHub account.
@codingjlu I cloned my repo from github to repl and it didn't ask for a language. It tried to autodetect it and failed, leaving it as a bash repo. How were you able to select your language in the clone process?
@codingjlu u ok there bud
@codingjlu git is a version control system
nobody -
me -
wondering why an ask post has these many comments