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. The Lounge
  3. Anyone know any good resources for extending VS and VS Code syntax highlighting/intellisense?

Anyone know any good resources for extending VS and VS Code syntax highlighting/intellisense?

Scheduled Pinned Locked Moved The Lounge
visual-studioquestioncsharp
33 Posts 8 Posters 2 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.
  • H honey the codewitch

    Yes, I already do that. It opens them as plain text files. Why would it do otherwise? It has no way of automatically discerning the syntax. Are you having a go at me?

    Real programmers use butterflies

    J Offline
    J Offline
    Jo_vb net
    wrote on last edited by
    #22

    The easy part is to get syntax highlighting for alternate file extension: https://stackoverflow.com/questions/21499143/how-to-get-syntax-highlighting-for-alternate-file-extension-for-visual-studio-20 Go to Tools -> Options -> Text Editor -> File Extension And type your alternative extension And then associate it with your editor (e.g. Microsoft Visual C++) The challenge is to add your custom highlighting list to VS / VS Editor!

    1 Reply Last reply
    0
    • H honey the codewitch

      Yes, I already do that. It opens them as plain text files. Why would it do otherwise? It has no way of automatically discerning the syntax. Are you having a go at me?

      Real programmers use butterflies

      J Offline
      J Offline
      Jo_vb net
      wrote on last edited by
      #23

      It looks like add new [code] language to VS Code is the only way to go. Colorizer - vscode-docs[^]

      H 1 Reply Last reply
      0
      • J Jo_vb net

        It looks like add new [code] language to VS Code is the only way to go. Colorizer - vscode-docs[^]

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #24

        There are ways to do it with visual studio as well.

        Real programmers use butterflies

        J 1 Reply Last reply
        0
        • H honey the codewitch

          There are ways to do it with visual studio as well.

          Real programmers use butterflies

          J Offline
          J Offline
          Jo_vb net
          wrote on last edited by
          #25

          How many different words / strings are in your custom (grammar) file? Would it be good enough to highlight all of them with the same backcolor?

          H 1 Reply Last reply
          0
          • J Jo_vb net

            How many different words / strings are in your custom (grammar) file? Would it be good enough to highlight all of them with the same backcolor?

            H Offline
            H Offline
            honey the codewitch
            wrote on last edited by
            #26

            I'm tired of this conversation. Look, I told you what I was looking for. The rest is just wasting time, and I'm busy.

            Real programmers use butterflies

            1 Reply Last reply
            0
            • H honey the codewitch

              I think the answer lies in this TextMate mess but everything I've found is incomprehensible or incomplete. Preferably I'd like it to also work with VS Code. I think the TextMate stuff does but I'm not sure as I don't know where to begin, with even finding a good place to read and start with it. This is a Visual Studio and VS Code question and I have no good place to put it.

              Real programmers use butterflies

              J Offline
              J Offline
              Jo_vb net
              wrote on last edited by
              #27

              Extending Visual Studio to Provide a Colorful Language Editor[^] To make it run on VS 2019 you have to update some references.

              1 Reply Last reply
              0
              • H honey the codewitch

                I think the answer lies in this TextMate mess but everything I've found is incomprehensible or incomplete. Preferably I'd like it to also work with VS Code. I think the TextMate stuff does but I'm not sure as I don't know where to begin, with even finding a good place to read and start with it. This is a Visual Studio and VS Code question and I have no good place to put it.

                Real programmers use butterflies

                M Offline
                M Offline
                mikemkii
                wrote on last edited by
                #28

                Just in case you haven't come across this yet - there's this youtube playlist by Mads Kristensen: https://www.youtube.com/playlist?list=PLReL099Y5nRdG2n1PrY_tbCsUznoYvqkS[^] ...and specifically this item within there which sounds like it might be what you're looking for, if it's detailed enough: Writing Visual Studio Extensions with Mads - Supporting new Languages with TextMate Grammar Files - YouTube[^] I have no personal experience to add, but came across it the other day.

                H 1 Reply Last reply
                0
                • M mikemkii

                  Just in case you haven't come across this yet - there's this youtube playlist by Mads Kristensen: https://www.youtube.com/playlist?list=PLReL099Y5nRdG2n1PrY_tbCsUznoYvqkS[^] ...and specifically this item within there which sounds like it might be what you're looking for, if it's detailed enough: Writing Visual Studio Extensions with Mads - Supporting new Languages with TextMate Grammar Files - YouTube[^] I have no personal experience to add, but came across it the other day.

                  H Offline
                  H Offline
                  honey the codewitch
                  wrote on last edited by
                  #29

                  Thanks. I wish they would have written it down instead of making me sit through a video but at this point I'm willing to try it. Thanks again.

                  Real programmers use butterflies

                  1 Reply Last reply
                  0
                  • H honey the codewitch

                    I think the answer lies in this TextMate mess but everything I've found is incomprehensible or incomplete. Preferably I'd like it to also work with VS Code. I think the TextMate stuff does but I'm not sure as I don't know where to begin, with even finding a good place to read and start with it. This is a Visual Studio and VS Code question and I have no good place to put it.

                    Real programmers use butterflies

                    M Offline
                    M Offline
                    Member 9167057
                    wrote on last edited by
                    #30

                    I am rather sure, I'll get to write a language server next year. Would something like that help you as well?

                    H 1 Reply Last reply
                    0
                    • M Member 9167057

                      I am rather sure, I'll get to write a language server next year. Would something like that help you as well?

                      H Offline
                      H Offline
                      honey the codewitch
                      wrote on last edited by
                      #31

                      I'm not sure, but I don't really use that stuff because it ties me to a platform, or I have to do extra work to target others. Using TextMate I should be able to hopefully use the same code to target VS and VS Code so I get my cross platformability. As far as anything beyond that, like other things a language server might provide, I don't really want all that buy in on something with so many moving parts, especially since it's tied to the Microsoft ecosystem.

                      Real programmers use butterflies

                      M 1 Reply Last reply
                      0
                      • H honey the codewitch

                        I'm not sure, but I don't really use that stuff because it ties me to a platform, or I have to do extra work to target others. Using TextMate I should be able to hopefully use the same code to target VS and VS Code so I get my cross platformability. As far as anything beyond that, like other things a language server might provide, I don't really want all that buy in on something with so many moving parts, especially since it's tied to the Microsoft ecosystem.

                        Real programmers use butterflies

                        M Offline
                        M Offline
                        Member 9167057
                        wrote on last edited by
                        #32

                        Langserver.org doesn't read like it's tied to the Microsoft ecosystem too badly. The Delphi IDE, by the way (sold by Embarcadero not affiliated with Microsoft) uses a Delphi language server.

                        H 1 Reply Last reply
                        0
                        • M Member 9167057

                          Langserver.org doesn't read like it's tied to the Microsoft ecosystem too badly. The Delphi IDE, by the way (sold by Embarcadero not affiliated with Microsoft) uses a Delphi language server.

                          H Offline
                          H Offline
                          honey the codewitch
                          wrote on last edited by
                          #33

                          Thanks. I'll look into it.

                          Real programmers use butterflies

                          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