mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Code() in file Code_mobject.py to display code with color highlighted added Paragraph() and "exact_spaces" parameter to Text() (#1036)
This commit is contained in:
@ -275,3 +275,107 @@ them to manim.play(), e.g.
|
||||
>>> c = Circle()
|
||||
>>> manim.play(ShowCreation(c))
|
||||
"""
|
||||
code_languages_list = {"abap": "abap", "as": "as", "as3": "as3", "ada": "ada", "antlr": "antlr",
|
||||
"antlr_as": "antlr-as",
|
||||
"antlr_csharp": "antlr-csharp", "antlr_cpp": "antlr-cpp", "antlr_java": "antlr-java",
|
||||
"antlr_objc": "antlr-objc", "antlr_perl": "antlr-perl", "antlr_python": "antlr-python",
|
||||
"antlr_ruby": "antlr-ruby", "apacheconf": "apacheconf", "applescript": "applescript",
|
||||
"aspectj": "aspectj",
|
||||
"aspx_cs": "aspx-cs", "aspx_vb": "aspx-vb", "asy": "asy", "ahk": "ahk", "autoit": "autoit",
|
||||
"awk": "awk",
|
||||
"basemake": "basemake", "bash": "bash", "console": "console", "bat": "bat",
|
||||
"bbcode": "bbcode",
|
||||
"befunge": "befunge", "blitzmax": "blitzmax", "boo": "boo", "brainfuck": "brainfuck",
|
||||
"bro": "bro",
|
||||
"bugs": "bugs", "c": "c", "csharp": "csharp", "cpp": "cpp", "c_objdump": "c-objdump",
|
||||
"ca65": "ca65",
|
||||
"cbmbas": "cbmbas", "ceylon": "ceylon", "cfengine3": "cfengine3", "cfs": "cfs",
|
||||
"cheetah": "cheetah",
|
||||
"clojure": "clojure", "cmake": "cmake", "cobol": "cobol", "cobolfree": "cobolfree",
|
||||
"coffee_script": "coffee-script", "cfm": "cfm", "common_lisp": "common-lisp", "coq": "coq",
|
||||
"cpp_objdump": "cpp-objdump", "croc": "croc", "css": "css", "css_django": "css+django",
|
||||
"css_genshitext": "css+genshitext", "css_lasso": "css+lasso", "css_mako": "css+mako",
|
||||
"css_myghty": "css+myghty", "css_php": "css+php", "css_erb": "css+erb",
|
||||
"css_smarty": "css+smarty",
|
||||
"cuda": "cuda", "cython": "cython", "d": "d", "d_objdump": "d-objdump", "dpatch": "dpatch",
|
||||
"dart": "dart",
|
||||
"control": "control", "sourceslist": "sourceslist", "delphi": "delphi", "dg": "dg",
|
||||
"diff": "diff",
|
||||
"django": "django", "dtd": "dtd", "duel": "duel", "dylan": "dylan",
|
||||
"dylan_console": "dylan-console",
|
||||
"dylan_lid": "dylan-lid", "ec": "ec", "ecl": "ecl", "elixir": "elixir", "iex": "iex",
|
||||
"ragel_em": "ragel-em",
|
||||
"erb": "erb", "erlang": "erlang", "erl": "erl", "evoque": "evoque", "factor": "factor",
|
||||
"fancy": "fancy",
|
||||
"fan": "fan", "felix": "felix", "fortran": "fortran", "Clipper": "Clipper",
|
||||
"fsharp": "fsharp", "gas": "gas",
|
||||
"genshi": "genshi", "genshitext": "genshitext", "pot": "pot", "Cucumber": "Cucumber",
|
||||
"glsl": "glsl",
|
||||
"gnuplot": "gnuplot", "go": "go", "gooddata_cl": "gooddata-cl", "gosu": "gosu", "gst": "gst",
|
||||
"groff": "groff",
|
||||
"groovy": "groovy", "haml": "haml", "haskell": "haskell", "hx": "hx", "html": "html",
|
||||
"html_cheetah": "html+cheetah", "html_django": "html+django", "html_evoque": "html+evoque",
|
||||
"html_genshi": "html+genshi", "html_lasso": "html+lasso", "html_mako": "html+mako",
|
||||
"html_myghty": "html+myghty", "html_php": "html+php", "html_smarty": "html+smarty",
|
||||
"html_velocity": "html+velocity", "http": "http", "haxeml": "haxeml", "hybris": "hybris",
|
||||
"idl": "idl",
|
||||
"ini": "ini", "io": "io", "ioke": "ioke", "irc": "irc", "jade": "jade", "jags": "jags",
|
||||
"java": "java",
|
||||
"jsp": "jsp", "js": "js", "js_cheetah": "js+cheetah", "js_django": "js+django",
|
||||
"js_genshitext": "js+genshitext", "js_lasso": "js+lasso", "js_mako": "js+mako",
|
||||
"js_myghty": "js+myghty",
|
||||
"js_php": "js+php", "js_erb": "js+erb", "js_smarty": "js+smarty", "json": "json",
|
||||
"julia": "julia",
|
||||
"jlcon": "jlcon", "kconfig": "kconfig", "koka": "koka", "kotlin": "kotlin", "lasso": "lasso",
|
||||
"lighty": "lighty", "lhs": "lhs", "live_script": "live-script", "llvm": "llvm",
|
||||
"logos": "logos",
|
||||
"logtalk": "logtalk", "lua": "lua", "make": "make", "mako": "mako", "maql": "maql",
|
||||
"mason": "mason",
|
||||
"matlab": "matlab", "matlabsession": "matlabsession", "minid": "minid",
|
||||
"modelica": "modelica",
|
||||
"modula2": "modula2", "trac_wiki": "trac-wiki", "monkey": "monkey", "moocode": "moocode",
|
||||
"moon": "moon",
|
||||
"mscgen": "mscgen", "mupad": "mupad", "mxml": "mxml", "myghty": "myghty", "mysql": "mysql",
|
||||
"nasm": "nasm",
|
||||
"nemerle": "nemerle", "newlisp": "newlisp", "newspeak": "newspeak", "nginx": "nginx",
|
||||
"nimrod": "nimrod",
|
||||
"nsis": "nsis", "numpy": "numpy", "objdump": "objdump", "objective_c": "objective-c",
|
||||
"objective_c_+": "objective-c++", "objective_j": "objective-j", "ocaml": "ocaml",
|
||||
"octave": "octave",
|
||||
"ooc": "ooc", "opa": "opa", "openedge": "openedge", "perl": "perl", "php": "php",
|
||||
"plpgsql": "plpgsql",
|
||||
"psql": "psql", "postgresql": "postgresql", "postscript": "postscript", "pov": "pov",
|
||||
"powershell": "powershell", "prolog": "prolog", "properties": "properties",
|
||||
"protobuf": "protobuf",
|
||||
"puppet": "puppet", "pypylog": "pypylog", "python": "python", "python3": "python3",
|
||||
"py3tb": "py3tb",
|
||||
"pycon": "pycon", "pytb": "pytb", "qml": "qml", "racket": "racket", "ragel": "ragel",
|
||||
"ragel_c": "ragel-c",
|
||||
"ragel_cpp": "ragel-cpp", "ragel_d": "ragel-d", "ragel_java": "ragel-java",
|
||||
"ragel_objc": "ragel-objc",
|
||||
"ragel_ruby": "ragel-ruby", "raw": "raw", "rconsole": "rconsole", "rd": "rd",
|
||||
"rebol": "rebol",
|
||||
"redcode": "redcode", "registry": "registry", "rst": "rst", "rhtml": "rhtml",
|
||||
"RobotFramework": "RobotFramework", "spec": "spec", "rb": "rb", "rbcon": "rbcon",
|
||||
"rust": "rust",
|
||||
"splus": "splus", "sass": "sass", "scala": "scala", "ssp": "ssp", "scaml": "scaml",
|
||||
"scheme": "scheme",
|
||||
"scilab": "scilab", "scss": "scss", "shell_session": "shell-session", "smali": "smali",
|
||||
"smalltalk": "smalltalk", "smarty": "smarty", "snobol": "snobol", "sp": "sp", "sql": "sql",
|
||||
"sqlite3": "sqlite3", "squidconf": "squidconf", "stan": "stan", "sml": "sml",
|
||||
"systemverilog": "systemverilog",
|
||||
"tcl": "tcl", "tcsh": "tcsh", "tea": "tea", "tex": "tex", "text": "text",
|
||||
"treetop": "treetop", "ts": "ts",
|
||||
"urbiscript": "urbiscript", "vala": "vala", "vb.net": "vb.net", "velocity": "velocity",
|
||||
"verilog": "verilog",
|
||||
"vgl": "vgl", "vhdl": "vhdl", "vim": "vim", "xml": "xml", "xml_cheetah": "xml+cheetah",
|
||||
"xml_django": "xml+django", "xml_evoque": "xml+evoque", "xml_lasso": "xml+lasso",
|
||||
"xml_mako": "xml+mako",
|
||||
"xml_myghty": "xml+myghty", "xml_php": "xml+php", "xml_erb": "xml+erb",
|
||||
"xml_smarty": "xml+smarty",
|
||||
"xml_velocity": "xml+velocity", "xquery": "xquery", "xslt": "xslt", "xtend": "xtend",
|
||||
"yaml": "yaml"}
|
||||
|
||||
code_styles_list = {0: "autumn", 1: "borland", 2: "bw", 3: "colorful", 4: "default", 5: "emacs",
|
||||
6: "friendly", 7: "fruity", 8: "manni", 9: "monokai", 10: "murphy", 11: "native",
|
||||
12: "pastie", 13: "perldoc", 14: "rrt", 15: "tango", 16: "trac", 17: "vim", 18: "vs"}
|
||||
|
Reference in New Issue
Block a user