6 ms·
Read code on the browser with ease.
- Fargren 16y agoDoes a Firefox equivalent exist?
- tsenart 16y agoNot at the moment. It's only for Chrome.
- dpritchett 16y agoGood thing too, because Chrome's rendering of XML and JSON pages has been nearly useless for casual reading. I love this extension already!
- CountHackulus 16y agoThis is pretty neat, but the description fails to mention which languages it supports. I tend to look at githubs for a lot of weird languages and if this thing can properly highlight F# then I'm installing it on all my computers.
- tsenart 16y agoThant's something to think of. The extension page now has the list of languages supported. Maybe I'll add some more soon. ;) Share and enjoy.
- s3graham 16y agoProbably this list? https://github.com/isagalaev/highlight.js/tree/master/src/languages https://github.com/isagalaev/highlight.js/tree/master/src/la...
- ctide 16y agoIt would be better if it inserted line breaks: http://ws.audioscrobbler.com/2.0/?method=library.gettracks&api_key=a9785e0b1bb8deb9eb4e090b3aba9613&user=ctide&method=library.getartists&format=json&page=1 http://ws.audioscrobbler.com/2.0/?method=library.gettracks&#...
- nobodyzzz 16y agoit would be great to have ability perform beautify(like http://jsbeautifier.org/ http://jsbeautifier.org/ does) of such code.
- tsenart 16y agoIt does. It was a bug on language detection. Just fixed it ;) Update.
- JeremyBanks 16y agoThat's really nice to have, though now the line numbers don't actually match up with the original file. Would it be possible to change that?
- tsenart 16y agoTell me the URL for me to debug please.
- JeremyBanks 16y agoI meant in the one discussed above, http://ws.audioscrobbler.com/2.0/?method=library.gettracks&api_key=a9785e0b1bb8deb9eb4e090b3aba9613&user=ctide&method=library.getartists&format=json&page=1 http://ws.audioscrobbler.com/2.0/?method=library.gettracks&#... It was originalyl all on one line, but now it has numbers for hundreds of lines that don't actually exist except for formatting.
- tsenart 16y agoJeremy that's strange. Tell me this stuff: Chrome version: OS and version: Sight version:
- briancurtin 16y agoExcellent. It supports highlighting diffs!
- mcrittenden 16y agoI've been using this for awhile now and it's been really invaluable for looking through stuff like JSON feeds or raw JS. Also has some nice color themes and font options.
- mnutt 16y agoIt visually looks a lot like Kod. (http://kodapp.com http://kodapp.com)
- georgieporgie 16y agoIs editing code on a very dark background the norm now, or just the Hot New Thing?
- kovar 16y agoIt may be hot, it may be the norm, but it certainly isn't new....
- georgieporgie 16y agoI believe it is. Perhaps you're referring to the old standard of black background terminals. If you look at mainstream desktop editors, the popular trend from the late 80's through the 90's was ever lighter backgrounds. Now, it seems, the popular trend is toward various dark shades. Incidentally, I'm at a loss as to why I received downvotes for asking about design.
- goblin89 16y agoPeople believe that dark background makes extensive reading from the screen easier for the eyes, and many advanced users accustomed themselves to it while working without GUI. So yes, light text on dark background is and always has been especially common among programmers.
- georgieporgie 16y agoand many advanced users accustomed themselves to it while working without GUI Ah, the old HN anti-GUI bias again. As for the eyestrain issue, I suspect people don't remember how bad CRT monitors were until near the end. Getting a consistent, bright white was difficult and very expensive. Horrible dot pitch meant bloom between very bright and dark colors. Color-related eyestrain just isn't the issue that it used to be.
- futuremint 16y agoI got to "this app wants to see all of your browsing history" and thought to myself, "why the hell would they want that?" So I clicked cancel and didn't install it.
- goblin89 16y agoI decided it's going to be really useful, so I saved & unzipped .crx to see what code it wants to inject into pages. Looks like fine javascript, so I have it installed. (Though, of course, it can be updated with some evilness later. Unfortunately, too much suspicion is often counterproductive.)
- tsenart 16y agoAbout that... I make no use of the user's browser history. But I need the "tabs" permissions. I also have to be able to access all urls. I could indeed access all your history and data with these permissions but that's a byproduct of the functioning and intent of the extension. I make no such thing... Just highlight code. Here is my manifest.json { "name": "Sight", "version": "1.6.3", "description": "The Syntax Highlighter for Chrome", "minimum_chrome_version": "8", "background_page": "background.html", "options_page": "options.html", "permissions": ["tabs", "<all_urls>"], "page_action": { "default_title": "Change language", "default_icon": "images/icon19.png", "default_popup": "popup.html" }, "icons": { "16": "images/icon16.png", "48": "images/icon48.png", "128": "images/icon128.png" } }