Questions tagged [monarch]

7 questions
3
votes
0 answers

Migrating Monarch language to VSCode

VSCode doesn't support the Monarch grammar in Monaco. I would like to implement syntax highlight in VSCode for a language which has a Monarch syntax highlight. Is there a good way to do so? Or do I have to write the grammar from scratch myself?
Trebor
  • 307
  • 2
  • 10
2
votes
0 answers

Monaco: Syntax highlighting for multiple languages in single document

I would like to have syntax highlighting for multiple languages in single file. Just like the markdown monarch example in which you can embed different languages inside a code block and specify the language. Since markdown is implemented using…
Grim
  • 937
  • 10
  • 24
2
votes
1 answer

How to use JSON which defines my language from Monarch within Monaco editor

If I produce a JSON within Monarch for my new language syntax and I wish to use it in my Monaco editor, how can I do that? Is there a way to load this JSON? I guess there is a function which I can call to add this JSON as a language but I'm finding…
Phil
  • 46,436
  • 33
  • 110
  • 175
0
votes
0 answers

How to write language syntax definition for Solr in Monarch (Monaco Editor)?

I have a Solr query like this one: (content_language:English OR content_language:"American French") AND ("Los Angeles" OR Washington) I am trying to at least have a autocomplete for the "content_language" string but I was not able to make it. Here…
ilhan
  • 8,700
  • 35
  • 117
  • 201
0
votes
1 answer

Monaco: comment keyboard-shortcut for custom language

I am using monaco ("monaco-editor": "^0.38.0") with a custom language profile and I want cmd+/ to toggle line commenting. My main js file has import { monaco } from "./customMonaco"; customMonaco has import…
Simon H
  • 20,332
  • 14
  • 71
  • 128
0
votes
1 answer

How to Load Custom Language in Monaco using VueJS/Webpack

I've created a custom language using this tool here. I don't know what to do to load it to my VueJS app. I tried the following and get no errors, but it also doesn't show seem to work, because in the Monarch tool thing I get blue text on known…
Leeish
  • 5,203
  • 2
  • 17
  • 45
-1
votes
1 answer

Adding Monarch plugin to stand alone PHP script emulating WordPress layout

I'm putting together a WordPress site for a charity organization which upgrades the look & feel of their existing site. Their existing site had a few PHP scripts and an events database for their project listings and I changed the output so that the…
Phil
  • 320
  • 4
  • 16