Giter Club home page Giter Club logo

hyperlight's People

Stargazers

 avatar

Watchers

 avatar  avatar

hyperlight's Issues

Formatting breaks early on CSS selectors that contain underscores

What steps will reproduce the problem?
1. create a CSS selector such as div#main_content or h2.sub_heading

What is the expected output? What do you see instead?
highlighting for class or id only matches up to the underscore, leaves the 
underscore as plain text node, and matches the rest of the class or id as a 
keyword


What version of the product are you using? On what operating system?
Using r52 straight from SVN, Windows 7, PHP 5.2.9


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 2 May 2012 at 1:00

Highlighter for PHP has horrible control for CSS targets.

There are very few keywords you can target for CSS, so I went ahead and 
implemented finer control. Patch is attached. I haven't looked through any 
other highlighters so if the keyword subgroups need renamed to match other 
languages I won't be offended.

There are also some keywords added in PHP 5.4/5.5 that were missing; they are 
also in the attached diff.

Original issue reported on code.google.com by [email protected] on 16 Nov 2013 at 1:07

Attachments:

Implement folding properly

Folding is implemented in the function `hyperlight_calculate_fold_marks`
which is basically one big hack and only works and VB and C# `region` folds.

It's just a proof of concept at the moment. The code needs to be
refactored, cleaned up and proper handling for (several types of?)
language-independent folds needs to be added. Likewise, proper client-side
handling is needed (e.g. in the form of a `hyperlight_write_header` function).

Original issue reported on code.google.com by [email protected] on 3 May 2009 at 3:15

VB comment

I found a problem with the comment highlighting with VB.

If you have a single quote comment which has nothing after it the comment 
carries onto the next line.

Example:

    '
    ' Test this fails by including Imports System in the last comment
    '
    Imports System

    '
    ' Test, this is fine
    Imports System

I don't quite understand the original regex "/(?:'{1,2}[^']|rem\s).*/i" but I 
managed to fix the problem for me by changing it to "/'{1,2}.*?\n/i".

Original issue reported on code.google.com by [email protected] on 17 Aug 2011 at 9:40

WordPress/etc. plugin

This code needs to be shipped with plugins for software such as WordPress.
Since there's no configuration necessary this shouldn't be too hard.

Original issue reported on code.google.com by [email protected] on 3 May 2009 at 3:18

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.