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.
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?
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.
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: https://github.com/grounds/grounds.io/issues/108#issuecomment-73281000