Questions tagged [prettify]

A JavaScript module and CSS file that allows syntax highlighting of source code snippets in an HTML page.

145 questions
3
votes
3 answers

Syntax Highlighting with scrolling at Blogspot

I am using blogspot.com. I want to make my coding highlighting. So, I use google code prettify api.  
Frank Myat Thu
  • 4,448
  • 9
  • 67
  • 113
3
votes
1 answer

Using multiple CodeMirror editors on a single page?

I'm writing a page with examples that demonstrate the use of my js library. I'd like these examples to be editable and runnable, so I thought I have these options : Use prettify to display code on the tutorial page, have a button that opens a new…
fingerprint211b
  • 1,176
  • 12
  • 24
3
votes
1 answer

intellij maven output link

How can i manage that the maven output compile errors in intellij output window are shown as links? That would be very helpfull! i am currently using intellij idea 10.2. My output is just a bunch of Text. i am using the scala maven plugin... perhaps…
Alex
  • 8,518
  • 4
  • 28
  • 40
3
votes
1 answer

Format html code in flask?

Is it possible to format html code before I render it with flask? In my current project, I use many jinja templates and everything is working, but the source code in the browser, doesn't look so good. It's not so important but it would look much…
Keanu Hie
  • 297
  • 2
  • 8
  • 12
3
votes
1 answer

How can I run Google's prettify to generate static HTML (w/ CSS) output?

I'm working on prettify'ing some auto-generated emails that often have code snippets in them. I want to use Google's prettify project to syntax highlight the code snippets. How can I invoke prettify on the server, before sending out the email,…
Ross Rogers
  • 23,523
  • 27
  • 108
  • 164
3
votes
1 answer

rails: removing underscore from controller name

when I generate a two word named controller, like FooBar rails creates a controller and path like foo_bar this is not pretty. I would like to have the paths at least be FooBar. Possible? Suggestions?
cbrulak
  • 15,436
  • 20
  • 61
  • 101
3
votes
1 answer

Swagger UI: Prettify JSON

Is there a way to make Swagger prettify the JSON on its own, without requiring the called library to output pretty JSON? I can't seem to find anything on the subject.
Mr Mikkél
  • 2,577
  • 4
  • 34
  • 52
3
votes
1 answer

Google Code Prettify - How to fix SQL escape character

I'm trying to fix the following issue, as it's being very annoying on my site. https://code.google.com/p/google-code-prettify/issues/detail?id=341&thanks=341&ts=1398085413 and refers to the following file of the prettify…
AlexT82
  • 1,114
  • 1
  • 7
  • 12
3
votes
1 answer

Horizontal scroll area for displaying code snippets on tumblr

I am trying to set up my tumblr theme using prettify and css customization to display python code snippets. I am brand new to css, but I have it pretty much working as I want now (thanks to scouring the web for examples). However, the text is…
Mathieson
  • 1,194
  • 2
  • 13
  • 28
3
votes
1 answer

JavaScript (stored inside assets) not working inside WebView in ICS (Ice Cream Sandwich)

Similar Problem : JavaScript doesn't work on ICS I'm working on an Android app that displays some code samples to the user. So, I'm using google-code-prettify in a WebView for syntax highlighting. But, the problem is, the js does not work on ICS…
niranjan94
  • 754
  • 1
  • 8
  • 28
3
votes
1 answer

How do I use a prettify.js theme?

There's a set of "themes" for prettify.js. How do I actually use them? Do I to a selected "theme" .css file instead of prettify.css file or do I do anything else? What's the procedure?
sharptooth
  • 167,383
  • 100
  • 513
  • 979
3
votes
1 answer

Syntax highlighting of dynamically generated snippet in web page using Prettify

I've a div in which I dynamically load a piece of code from the result of an AJAX request. Then I want to format it using prettify. It works but it's damn slow. The code I use is the following: var jqxhr = $.get(fileName) .success(function(data) { …
2
votes
4 answers

How to prettify programming language

I have code written in any programming language. How can I "prettify" it (bold if, else etc.) to display on a website? Are there any good APIs to do that?
good_evening
  • 21,085
  • 65
  • 193
  • 298
2
votes
3 answers

Using Google Prettify to display HTML and CSS code. Do I have to replace every < > with html name?

Google Prettify wasn't displaying HTML properly for me until I found on stackoverflow that I should replace all the < with < and all the > with >. Is this really necessary? Is there an easier way to accomplish this? I want to display simple…
Mark Rummel
  • 2,920
  • 10
  • 37
  • 52
2
votes
0 answers

GWT library to highlight source code

I'm trying to find good ready to use gwt library to highlight source code, but I couldn't find any. Started to think about using http://code.google.com/p/google-code-prettify/ and simple call to JS function after each page rendering but maybe there…
zeroed
  • 1,081
  • 1
  • 9
  • 18
1 2
3
9 10