[GH-ISSUE #1126] code segment not support golang very well #463

Closed
opened 2026-03-03 00:21:22 +03:00 by kerem · 5 comments
Owner

Originally created by @wsqyouth on GitHub (Aug 30, 2021).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/1126

Issuehunt badges

the software is very cool

but the code segment do not support golang language

the color not support golang very well


IssueHunt Summary

Backers (Total: $10.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

Originally created by @wsqyouth on GitHub (Aug 30, 2021). Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/1126 <!-- Issuehunt Badges --> [<img alt="Issuehunt badges" src="https://img.shields.io/badge/IssueHunt-%2410%20Funded-%2300A156.svg" />](https://issuehunt.io/r/BoostIO/BoostNote-App/issues/1126) <!-- /Issuehunt Badges --> the software is very cool but the code segment do not support golang language the color not support golang very well <!-- Issuehunt content --> --- <details> <summary> <b>IssueHunt Summary</b> </summary> ### Backers (Total: $10.00) - [<img src='https://avatars3.githubusercontent.com/u/13612118?v=4' alt='boostio' width=24 height=24> boostio](https://issuehunt.io/u/boostio) ($10.00) #### [Become a backer now!](https://issuehunt.io/r/BoostIO/BoostNote-App/issues/1126) #### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/BoostIO/BoostNote-App/issues/1126) ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/BoostIO/BoostNote-App/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds. </details> <!-- /Issuehunt content-->
Author
Owner

@Komediruzecki commented on GitHub (Aug 30, 2021):

Hi,

The CodeMirror editor comes with the Go language mode as one of the supported languages,

Can you please be more specific and give examples of what is not supported very well, which parts aren't particularly well highlighted?

This way we can either improve it or see if it is possible to modify it to be even more correct.

Here is the example in Go code, seems fine to me:
image

<!-- gh-comment-id:908366830 --> @Komediruzecki commented on GitHub (Aug 30, 2021): Hi, The CodeMirror editor comes with the Go language mode as one of the supported languages, Can you please be more specific and give examples of what is not supported very well, which parts aren't particularly well highlighted? This way we can either improve it or see if it is possible to modify it to be even more correct. Here is the example in Go code, seems fine to me: ![image](https://user-images.githubusercontent.com/18196945/131351167-f0566537-5e9a-4d56-992b-f22b8beac018.png)
Author
Owner

@wsqyouth commented on GitHub (Aug 31, 2021):

yes,you really let me know how to use it. i want to know the file name suffix if has Influenced the highlighted,like
image

by the way, the code use what keyword ,i didnot see in the website,for example, i don't know use 'go' or 'golang'

thank you reply me in time, by the way, your golang code write very well!

<!-- gh-comment-id:908854547 --> @wsqyouth commented on GitHub (Aug 31, 2021): yes,you really let me know how to use it. i want to know the file name suffix if has Influenced the highlighted,like ![image](https://user-images.githubusercontent.com/15953069/131433740-325937d7-76e2-4b13-80be-7713b8763e52.png) by the way, the code use what keyword ,i didnot see in the website,for example, i don't know use 'go' or 'golang' thank you reply me in time, by the way, your golang code write very well!
Author
Owner

@Komediruzecki commented on GitHub (Aug 31, 2021):

Hi,

Yes, unfortunately document title will not affect the document syntax highlight, because it is not a snippet note.

In boost note spaces, you need to explicitely name the mode you want to write something, there is a list of aliases which should work for mode though, but yes, typically the easiest distinct name is used, in this case 'go'.

If you have any more questions, let me know, otherwise we can close the issue.

I'll try to add mode actual names list and post it in wiki alongside link to modes.

<!-- gh-comment-id:909176645 --> @Komediruzecki commented on GitHub (Aug 31, 2021): Hi, Yes, unfortunately document title will not affect the document syntax highlight, because it is not a snippet note. In boost note spaces, you need to explicitely name the mode you want to write something, there is a list of aliases which should work for mode though, but yes, typically the easiest distinct name is used, in this case 'go'. If you have any more questions, let me know, otherwise we can close the issue. I'll try to add mode actual names list and post it in wiki alongside link to modes.
Author
Owner

@issuehunt-oss[bot] commented on GitHub (Sep 14, 2021):

@boostio has funded $10.00 to this issue.


<!-- gh-comment-id:918959824 --> @issuehunt-oss[bot] commented on GitHub (Sep 14, 2021): [@boostio](https://issuehunt.io/u/boostio) has funded $10.00 to this issue. --- - Submit pull request via [IssueHunt](https://issuehunt.io/repos/74213528/issues/1126) to receive this reward. - Want to contribute? Chip in to this issue via [IssueHunt](https://issuehunt.io/repos/74213528/issues/1126). - Checkout the [IssueHunt Issue Explorer](https://issuehunt.io/issues) to see more funded issues. - Need help from developers? [Add your repository](https://issuehunt.io/r/new) on IssueHunt to raise funds.
Author
Owner

@wsqyouth commented on GitHub (Sep 14, 2021):

please close it. thx,

<!-- gh-comment-id:918984364 --> @wsqyouth commented on GitHub (Sep 14, 2021): please close it. thx,
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#463
No description provided.