mirror of
https://github.com/neocities/neocities.git
synced 2025-07-14 06:45:06 +02:00
basic monaco editor setup
This commit is contained in:
parent
47edba24dc
commit
165e17f844
467 changed files with 40 additions and 328148 deletions
|
@ -194,7 +194,7 @@ get '/site_files/text_editor' do
|
|||
@filename = params[:filename]
|
||||
extname = File.extname @filename
|
||||
|
||||
@ace_mode = case extname
|
||||
@monaco_mode = case extname
|
||||
when /htm|html/ then 'html'
|
||||
when /js/ then 'javascript'
|
||||
when /md/ then 'markdown'
|
||||
|
@ -267,4 +267,4 @@ post '/site_files/chat' do
|
|||
out << buffer
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue