Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Create Textmate extension problem

Create Textmate extension problem

Scheduled Pinned Locked Moved Visual Studio
visual-studiocsharpcomjsonhelp
2 Posts 2 Posters 18 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 12554643
    wrote on last edited by
    #1

    Good morning all,
    I tried to create an extension so that VS 2019 can support a programming language called CpcdosC +. There is already a functional extension but for Visual Studio Code.
    My problem is that despite having applied everything to the letter of the tutorial from Microsoft
    https://youtu.be/5LaVcOP2X4g

    By replacing the Language file in the Grammars folder with my json file
    https://github.com/SPinti-Software/vscode-cpcdos/blob/master/syntaxes/cpc.tmLanguage.json
    When I test the project and add a cpcdosc + (.cpc) file in Visual Studio (the Visual Studio working test), the code does not color.
    Sorry for the English I am French.
    Thank you for the attention you will bring me !

    Richard DeemingR 1 Reply Last reply
    0
    • U User 12554643

      Good morning all,
      I tried to create an extension so that VS 2019 can support a programming language called CpcdosC +. There is already a functional extension but for Visual Studio Code.
      My problem is that despite having applied everything to the letter of the tutorial from Microsoft
      https://youtu.be/5LaVcOP2X4g

      By replacing the Language file in the Grammars folder with my json file
      https://github.com/SPinti-Software/vscode-cpcdos/blob/master/syntaxes/cpc.tmLanguage.json
      When I test the project and add a cpcdosc + (.cpc) file in Visual Studio (the Visual Studio working test), the code does not color.
      Sorry for the English I am French.
      Thank you for the attention you will bring me !

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      You seem to be missing the fileTypes element in your JSON file:

      {
      "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
      "name": "CpcdosC+",
      "fileTypes": [
      "cpc"
      ],

      Without that, I suspect Visual Studio doesn't know to associate your grammar with the file.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups