Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# syntax highligting in github extended markdown #2117

Closed
salmiakki opened this issue Apr 26, 2015 · 2 comments
Closed

C# syntax highligting in github extended markdown #2117

salmiakki opened this issue Apr 26, 2015 · 2 comments

Comments

@salmiakki
Copy link

I've got some notes in GitHub Flavored Markdown, e.g.:

    ```csharp
    for (int i = 0 ; i < 10; i++)
    {
      // Code to execute.
    }
    ```

I don't get any syntax highlighting when I try to convert it from markdown_github to HTML. Replacing csharp with C# doesn't help. I expect something like

for (int i = 0 ; i < 10; i++)
{
 // Code to execute.
}

For other languages (e.g. C or JavaScript) it works fine.

@jgm
Copy link
Owner

jgm commented Apr 26, 2015

This is not obvious and should be documented somewhere in
pandoc itself (as opposed to highlighting-kate), but cs should work.

+++ salmiakki [Apr 26 15 15:46 ]:

I've got some notes in GitHub Flavored Markdown, e.g.:

   ```csharp
   for (int i = 0 ; i < 10; i++)
   {
     // Code to execute.
   }

I don't get any syntax highlighting when I try to convert it from `markdown_github` to HTML. Replacing `csharp` with `C#` doesn't help. I expect something like

```csharp
for (int i = 0 ; i < 10; i++)
{
// Code to execute.
}

For other languages (e.g. C or JavaScript) it works fine.


Reply to this email directly or view it on GitHub:
#2117

@salmiakki
Copy link
Author

It does, thanks!

Maybe it could be a good idea to add C# and csharp (both used in GFM) as aliases to pandoc or even highlighting-kate?

paulyuk pushed a commit to paulyuk/quickstarts that referenced this issue May 22, 2023
Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>
msfussell added a commit to dapr/quickstarts that referenced this issue May 22, 2023
* Initial checkin of starter app

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* changing Record to Class given Actors cannot serialize records

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Updating to use custom statestore and port 5001

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Modernized to 100% minimal API code; no Startup.cs needed.

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Mocked Controller actor and chose better names

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Fixed ControllerActor activiation

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Readme cleanup

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* removed dead legacy usings/code

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* multitarget inferfaces to .net 6;7

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Style linting

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* readme improvement

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* new structure of README

* Rewrite first section to better align with existing quickstarts

* Add examples of using the client app.

* Align README with new structure

* Updated readme for format and simplicity. Todos are done.

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* tweak to readme to make more language independent

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* fixing up folder names in readme

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Update folders and csproj to match other building blocks

* Fix capitalization in namespaces and remove unused reminders

* Simplifying SmartDeviceData

* Change to signal controller and sound the alarm

* Set Status to Alarm

* Change naming to SmokeDetectorActor

* Fix actor name and remove console logging in actors

* Fix type

* Upgrade to 1.10

* Remove battery and temp functionality

Signed-off-by: Marc Duiker <marcduiker@gmail.com>

* Use explicit device1 and 2 variables in the client to avoid confusion

Signed-off-by: Marc Duiker <marcduiker@gmail.com>

* Update README with new code

Signed-off-by: Marc Duiker <marcduiker@gmail.com>

* staging a reminders feature

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Implemented reminders to clear alarm state after 15 seconds

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Update actors/csharp/sdk/README.md

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* updated expected output in readme with reminder

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Updating main quickstarts readme to include Actors

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Removing In-development label from readme

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* updating MD per jgm/pandoc#2117

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>

* Update actors/csharp/sdk/README.md

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Update actors/csharp/sdk/service/SmokeDetectorActor.cs

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Update actors/csharp/sdk/service/SmokeDetectorActor.cs

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Update actors/csharp/sdk/README.md

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Update actors/csharp/sdk/service/ControllerActor.cs

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Update actors/csharp/sdk/service/SmokeDetectorActor.cs

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

---------

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>
Signed-off-by: Marc Duiker <marcduiker@gmail.com>
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>
Co-authored-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>
Co-authored-by: Marc Duiker <marcduiker@gmail.com>
Co-authored-by: Mark Fussell <markfussell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants