Giter VIP home page Giter VIP logo

blazorprettycode's People

Contributors

chanan avatar jbomhold3 avatar peterblazejewicz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

blazorprettycode's Issues

Too much whitespace being removed

<PrettyCode CodeFile="https://raw.githubusercontent.com/chanan/BlazorStyled/master/src/Sample/Pages/Index.razor" CodeFileLineNumbers="13-15" CodeSectionFileLineNumbers="21-34,37" />

CSS Display

CSHTMLTokenizer 0.8 has css tokenization add to PrettyCode

Add token for Quotes

Allow themes to color the quote marks. For example Winter Is Coming Dark:

{
      "Name": "Quotes",
      "Settings": { "color": "#6bff81" }
    },

Support for razor html and code html as well as line numbers

API:

<PrettyCode CodeFile="uri" />

This will do exactly what CodeFile did previously

<PrettyCode CodeFile="uri" CodeSectionFile="uri2" />

This will append the contents of CodeSectionFile below CodeFile. If CodeSectionFile is not wrapped with: @code { } then it will be wrapped automatically.

Line numbers are also supported:

<PrettyCode 
   CodeFile="uri" 
   CodeFileLineNumbers="1-50"
   CodeSectionFile="uri2"
   CodeSectionFileLineNumbers="52,55-60"
/>

If CodeSectionFile is not defined but CodeSectionFileLinesNumbers is defined, then it will be assumed that the code section is in the same file as CodeFile

Parsing Error for Less Than

The Less Than symbol < produces "<<>" when not associated with a tag. Using < does not work as a workaround.

Add a border-left to HighlightLines

Add a border-left to HighlightLines so that lines are highlighted even when numbers are off (see overreacted.io)

Also allow to customize highlight color?

Ensure SSB support

BlazorStyled works in SSB mode. Ensure BlazorPrettyCode does as well, update docs if needed.

Text next to @Inject doesnt have a style

This might be a big in CSHTMLTokenizer.

<PrettyCode CodeFile="https://raw.githubusercontent.com/chanan/BlazorStyled/master/src/Sample/Pages/Basic.razor"
            CodeFileLineNumbers="2,14"
            CodeSectionFileLineNumbers="46,49-52" />

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.