Giter VIP home page Giter VIP logo

dtl-legacy's People

Contributors

cubicdaiya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dtl-legacy's Issues

Feature: Colorized Output

It would be nice to be able to enable or configure colorized output. Since everything is done with #define statements and no line terminators can be configured (e.g. to disable colors) it isn't currently possible without writing your own printing functions. I've made a change here:

apiaryio@f0f1d5a?w=0

And now the output is like the diff utility in a terminal, giving nice colored output. Downsides are that this isn't supported in Windows I guess, but that's not a big concern for me considering it's just used for unit tests. Here is an example of it in action:

screen shot 2015-10-22 at 10 24 07

I'm not that good with C++ and templates in general, but would it be possible to add this as an option to the original dtl library? I doubt you always want to output these special characters, especially in terminals that don't support it.

One idea I had was to modify the #define statements to use #ifndef, that way I could define some character sequences for the summary/additions/deletions and line endings before including the dtl.hpp file and it would use them. Is that a reasonable approach to this problem?

Corrupt repository

Hi,

I've noticed there seems to be some commits in this repository that have errors regarding invalid committer/author name. You can verify this using git fsck.

$ git fsck
Checking object directories: 100% (256/256), done.
error in commit 78c31c136b06871558afe81bd0c28cd51d1734d8: missingSpaceBeforeEmail: invalid author/committer line - missing space before email
error in commit 5335e12c058a6caddb80dcfc427568900e6de627: missingSpaceBeforeEmail: invalid author/committer line - missing space before email
error in commit 955ce46d4a3f0643145b77ec6af1a3f3758d1dd8: missingSpaceBeforeEmail: invalid author/committer line - missing space before email
...
error in commit 16d12eac929333d985bffa902f42df0420c4bb4b: missingSpaceBeforeEmail: invalid author/committer line - missing space before email
Checking objects: 100% (2212/2212), done.

I'm not too sure how we can fix this, perhaps we can figure out first how this happened first.

This was originally posted to apiaryio/drafter#241 as we are using dtl as a submodule.

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.