Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9344326
python-repl.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
650 B
Subscribers
None
python-repl.js
View Options
/*
Language: Python REPL
Requires: python.js
Author: Josh Goebel <hello@joshgoebel.com>
Category: common
*/
function
pythonRepl
(
hljs
)
{
return
{
aliases
:
[
'pycon'
],
contains
:
[
{
className
:
'meta.prompt'
,
starts
:
{
// a space separates the REPL prefix from the actual code
// this is purely for cleaner HTML output
end
:
/ |$/
,
starts
:
{
end
:
'$'
,
subLanguage
:
'python'
}
},
variants
:
[
{
begin
:
/^>>>(?=[ ]|$)/
},
{
begin
:
/^\.\.\.(?=[ ]|$)/
}
]
}
]
};
}
module
.
exports
=
pythonRepl
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 2:20 PM (5 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3361783
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment