Code Monkey home page Code Monkey logo

Comments (5)

mmcgrana avatar mmcgrana commented on June 3, 2024

Yep I agree that consistency would be good, thanks for the report @nf.

To start I changed the toolchain to use the most recent version of Pgyments, which has helped some. In particular more tokens including boolean constants and previously-unrecognized predclareds are now recognized. There is a tradeoff now between having a different color for everything and having too many colors. I'm not thrilled about the current scheme but I think it's correctness is strictly better than the previous version.

I'll leave the issue open while we continue to think about this.

from gobyexample.

dlintw avatar dlintw commented on June 3, 2024

@nf
I"ve use pygment to generate to dlin.github.com/gobyexample, please check if it correct for you.

from gobyexample.

nf avatar nf commented on June 3, 2024

@dlintw I guess it's okay. The distinction between pre-declared identifiers (int, string) and keywords (func, var) isn't very strong int hat case, though.

from gobyexample.

dlintw avatar dlintw commented on June 3, 2024

Well, I don't want to deep into modify this problem, just call the system pygment. If there is good Go library, maybe I'll learn how to put it in.

from gobyexample.

mmcgrana avatar mmcgrana commented on June 3, 2024

I'm going to close this because I don't plan to improve the highlighting beyond what's offered by the most recent Pygments package. I'm open to PRs if someone feels really motivated to address this.

from gobyexample.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.