Giter Club home page Giter Club logo

Comments (8)

chrissimpkins avatar chrissimpkins commented on July 28, 2024 1

Thank you!

from cinder.

chrissimpkins avatar chrissimpkins commented on July 28, 2024

Our version of highlight.js is from at least 8 months ago. I took a look at the changelog and it appears that more recent versions have addressed C/C++ function definitions and pointer definitions.

Mind downloading the current version of highlight.js from here https://highlightjs.org/download/

and install it over the current version that we release in your site's js directory as highlight.pack.js:

https://github.com/chrissimpkins/cinder/blob/master/cinder/js/highlight.pack.js

I am guessing that this is correct. In either case, I would be happy to update the highlight.js code.

Thanks for letting me know.

from cinder.

jackmitch avatar jackmitch commented on July 28, 2024

The new highlight JS throws some javascript errors, I've added and pushed the new version to my docs repo so you can see the errors.

http://jackmitch.github.io/libsoc/c/gpio/

from cinder.

jackmitch avatar jackmitch commented on July 28, 2024

OK, scratch that I was being daft. The new highlight js does fix the syntax highlighting.

from cinder.

chrissimpkins avatar chrissimpkins commented on July 28, 2024

Fantastic. Good to hear. Did you create a custom language build or use the default language support set?

from cinder.

jackmitch avatar jackmitch commented on July 28, 2024

I just used the default set of languages.

from cinder.

automatonatm avatar automatonatm commented on July 28, 2024

public function bestAnswer() {
$result = false;
foreach ($this->replies as $reply) {
if($reply->best_answer) {
$result = true;
break;
}
}
return $result;
}

from cinder.

chrissimpkins avatar chrissimpkins commented on July 28, 2024

Sorry I didn't update the thread with details @automatonatm @jackmitch. I updated the source highlighting in the v0.15.0 release. This should be working appropriately now for all supported source languages. See https://sourcefoundry.org/cinder/specimen/#language-support for languages that are currently supported. If you need additional languages or run into further problems with the syntax highlighting please open a new report!

from cinder.

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.