Giter VIP home page Giter VIP logo

piu.clj's Introduction

paste.in.ua

piu.clj is an open source application powering paste.in.ua - a simple pastebin service.

It's written in Clojure and compiles down to a single binary using GraalVM with Native Image plugin. See releases for the compiled binary.

Features

piu.clj's People

Contributors

piranha avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

shpyntov

piu.clj's Issues

Multi-line entities break code highlighting

Only the first line is highlighted for multi-line comments and there are some other syntax highlighting glitches due to incorrect HTML generation.

A simple example to demonstrate the problem:

/*
 * Multi-line comment!
 */

<span class="comment">/*
 * Multi-line comment!
 */</span>

<tr><td>1</td><td><span class="comment">/*</td></tr>
<tr><td>2</td><td> * Multi-line comment!</td></tr>
<tr><td>3</td><td> */</span></td></tr>

The <span> tags are left unclosed inside <td> tags, this leads to a syntax highlighting issues.

A more complex example to demonstrate the problem: https://paste.in.ua/eyk9/

image

HTML Validation Report: https://validator.w3.org/nu/?doc=https%3A%2F%2Fpaste.in.ua%2Feyk9%2F


I tried to solve this problem on my similar code snippets sharing service: https://code.exlmoto.ru/161

image

HTML Validation Report: https://validator.w3.org/nu/?doc=https%3A%2F%2Fcode.exlmoto.ru%2F161

My solution to this problem is described here: https://habr.com/ru/post/534044/#service

And in the source code of my project:
https://github.com/EXL/CodePolyglot/blob/master/src/main/java/ru/exlmoto/code/highlight/filter/TagCompensator.java


I hope you find this information useful.
Merry Christmas and Happy New Year!

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.