A JavaScript module and CSS file that allows syntax highlighting of source code snippets in an HTML page.
Questions tagged [prettify]
145 questions
1
vote
2 answers
google code prettify will not show images
I followed the instructions fr google preffify and all I get is a box with nonthing in it on the page. WHere did I go wrong? I get 200 for the includes.

Tampa
- 75,446
- 119
- 278
- 425
0
votes
2 answers
Google Prettify: Line numbers won't show
For some reason, my line numbers won't show. Is this a known issue? Code coloring works fine. It's just the line numbers that won't show
HTML
<h1 class="test">This is a…

Kriem
- 8,666
- 16
- 72
- 120
0
votes
1 answer
How do I prevent code written in my from rendering?
So I am using the google code prettifier: http://code.google.com/p/google-code-prettify/
It does something similar to what stack overflow does here where when you write a block of code it beautifies it and adds syntax highlighting.
The problem I am…

Adim
- 811
- 2
- 10
- 25
0
votes
1 answer
eslint react to format curly braces
I can't find any react eslint rule to prettify the content between the curly braces
{
items.map(i => (
It should look like this
{i}
))
}
{
items.map(i => (
{i}
))
}

shinpei
- 3
- 1
0
votes
1 answer
Python BeautifulSoup prettify
I am trying to web scrap a webpage to download the data.
The code is as follow:
from bs4 import BeautifulSoup
import…

ryantl
- 29
- 4
0
votes
1 answer
emacs prettify-symbols replacing characters at same point
I am using prettify-symbols to switch between the following words and shortcuts. The problem is that when the replacement is more than a single character, all letters are being inserted at the same point.
For instance when little is replaced I get…

Dilna
- 405
- 1
- 6
0
votes
0 answers
How to run prettier automatically in Nuxt.JS
Using Nuxt.JS, while on development with npm run dev, I want to trigger the command npm run prettier automatically when saving, to keep the code clean.
In any other project, I would achieve this with Nodemon with the following nodemon.json:
{
…

adelriosantiago
- 7,762
- 7
- 38
- 71
0
votes
1 answer
How to format SQL Queries inside PySpark codefile
I would like to format my existing SQL queries inside the PySpark file.
This is how my existing source file looks like:
from flow import flow
f = flow(["xxx"], ["xxxxxxxx"])
# this is a comment
f.spark.sql(
""" select dealer_number…

Anuj Sharma
- 15
- 5
0
votes
1 answer
BeautifulSoup prettify encoding non-English (Cyrillic) characters strangely
I have HTML with Cyrillic characters. I am using BeautifulSoup4 to process this. It works great, but when I go to prettify, it converts all the Cyrillic characters to something else. Here is a dummy example using Python3:
from bs4 import…

bikz
- 415
- 4
- 11
0
votes
1 answer
VS Code formatter for HTML emails
I'm looking for a code prettifier/formatter extension that will format HTML, specifically in the context of marketing emails.
ALL of the existing products I've seen don't take MSO conditionals into account:
...and will throw off the…

Paulo_dev
- 81
- 1
- 7
0
votes
1 answer
Why is Sublime Text context menu disabled (image below)
I have installed HTML-CSS-JS Prettify package in Sublime Text 3 (on Ubuntu 18.4).
The image below shows that it appears on the context menu. However, when I select its context menu (the second context menu) has all options greyed out. I can't find a…

Andrew
- 149
- 1
- 13
0
votes
2 answers
How to merge code after prettify ran upstream
I'm maintaining a fork of an open source project where we pull approximately every month from upstream in order not to branch too much.
When I tried to pull from upstream this month I found out they ran prettify (or some other equivalent) over the…

Dan
- 261
- 2
- 8
0
votes
1 answer
Google prettifier line slicing and white background
When I add line numbers with more than 4 digit numbers it's lines are sliced out of the code box.
When I use background-color: #eee; all works great but it works not for white colour background-color: #fff;.
How to fix line numbers slicing out of…

Ivan Shelonik
- 1,958
- 5
- 25
- 49
0
votes
2 answers
JSON Prettifier Using Azure Function w/ PowerShell and HTTP Trigger
Thought this would be pretty simple, but alas, I can't figure it out. It appears that PowerShell will prettify JSON with a single cmdlet.
Goal: Prettify JSON using a PowerShell Azure Function app
Using Microsoft Flow, send an HTTP request (POST) to…

ericOnline
- 1,586
- 1
- 19
- 54
0
votes
1 answer
Issues understanding Vim's regex engine
I am trying to set up a script for the conceal feature to prettify strings in Python. This worked fine so far for single word substitutions. But now I would like to replace "not in" with "∉". I tried this:
syntax match pyOperator "not in" conceal…

lo tolmencre
- 3,804
- 3
- 30
- 60