I am using Ruby on rails framework in website. I want to embed editor in
website where I can write c++ ,python,c code etc. Please suggest any gem
or
editor which I can embed in my website. I have explore some like “Code
Mirror” But i am in need of code editor like “Sublime Text”. Is there
any
api or gem by which I can have editor like sublime text.
Thanks.
On 5 February 2015 at 19:28, Puneet Agarwal
[email protected] wrote:
I am using Ruby on rails framework in website. I want to embed editor in
website where I can write c++ ,python,c code etc. Please suggest any gem or
editor which I can embed in my website. I have explore some like “Code
Mirror” But i am in need of code editor like “Sublime Text”. Is there any
api or gem by which I can have editor like sublime text.
Are you hoping to edit a file on the PC running the browser? If not
then where is the file to be edited?
Colin
I want that user can write code on the browser and can save it to the
server, like hackerearth , hackerrank are some of the websites which
have
editors embedded in their browser.
Thanks.
Wouldn’t node be a better candidate? You want real time no?
VIM is an Extreme customizable editor, Perform over your dreams.
I want editor like this only. Is integration difficuilt ?? And is
compiler
for different languages embedded with editor only??
Thank you very much. This will solve my problem.
Rakesh,
I know VIM is best editor but for technical people and my website is for
end user so I cannot have VIM tool embedded in my website.
Thanks.
I run this Rails app on a separate domain. You can get a $5/month
instance
on digital ocean and host grounds.io on your own domain. I cloned it and
customized the look and feel for my needs. It uses Docker to execute
code
in a separate environment so your Rails app is isolated. I am in the
process of documenting the steps to get it running on my blog.
Meanwhile,
if you are eager to get started you can read this
thread:
Deploying grounds.io · Issue #108 · grounds/grounds.io · GitHub
How to build codeschool.com clone and get rich quick! Check out the blog
post: How to build codeschool.com clone and make $35 million in 4 years!
http://bparanj.blogspot.com/2015/02/how-to-build-codeschoolcom-clone-and.html