add QCodeEditor
This commit is contained in:
parent
bccee9bd36
commit
2f3069a388
316 changed files with 98016 additions and 0 deletions
17
external/QCodeEditor/example/resources/code_samples/cxx.cpp
vendored
Normal file
17
external/QCodeEditor/example/resources/code_samples/cxx.cpp
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
int n, sum = 0;
|
||||
|
||||
std::cout << "Enter a positive integer: ";
|
||||
std::cin >> n;
|
||||
|
||||
for (int i = 1; i <= n; ++i)
|
||||
{
|
||||
sum += i;
|
||||
}
|
||||
|
||||
std::cout << "Sum = " << sum;
|
||||
return 0;
|
||||
}
|
||||
9
external/QCodeEditor/example/resources/code_samples/json.json
vendored
Normal file
9
external/QCodeEditor/example/resources/code_samples/json.json
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"root": {
|
||||
"some array": [1, 2, 3],
|
||||
"some string": "Hello world",
|
||||
"some dbl": 2.121323,
|
||||
"some bool": true,
|
||||
"some null": null
|
||||
}
|
||||
}
|
||||
414
external/QCodeEditor/example/resources/code_samples/lua.lua
vendored
Normal file
414
external/QCodeEditor/example/resources/code_samples/lua.lua
vendored
Normal file
|
|
@ -0,0 +1,414 @@
|
|||
-- Two dashes start a one-line comment.
|
||||
--[[
|
||||
Adding two ['s and ]'s makes it a
|
||||
multi-line comment.
|
||||
--]]
|
||||
|
||||
----------------------------------------------------
|
||||
-- 1. Variables and flow control.
|
||||
----------------------------------------------------
|
||||
|
||||
num = 42 -- All numbers are doubles.
|
||||
-- Don't freak out, 64-bit doubles have 52 bits for
|
||||
-- storing exact int values; machine precision is
|
||||
-- not a problem for ints that need < 52 bits.
|
||||
|
||||
s = 'walternate' -- Immutable strings like Python.
|
||||
t = "double-quotes are also fine"
|
||||
u = [[ Double brackets
|
||||
start and end
|
||||
multi-line strings.]]
|
||||
t = nil -- Undefines t; Lua has garbage collection.
|
||||
|
||||
-- Blocks are denoted with keywords like do/end:
|
||||
while num < 50 do
|
||||
num = num + 1 -- No ++ or += type operators.
|
||||
end
|
||||
|
||||
-- If clauses:
|
||||
if num > 40 then
|
||||
print('over 40')
|
||||
elseif s ~= 'walternate' then -- ~= is not equals.
|
||||
-- Equality check is == like Python; ok for strs.
|
||||
io.write('not over 40\n') -- Defaults to stdout.
|
||||
else
|
||||
-- Variables are global by default.
|
||||
thisIsGlobal = 5 -- Camel case is common.
|
||||
|
||||
-- How to make a variable local:
|
||||
local line = io.read() -- Reads next stdin line.
|
||||
|
||||
-- String concatenation uses the .. operator:
|
||||
print('Winter is coming, ' .. line)
|
||||
end
|
||||
|
||||
-- Undefined variables return nil.
|
||||
-- This is not an error:
|
||||
foo = anUnknownVariable -- Now foo = nil.
|
||||
|
||||
aBoolValue = false
|
||||
|
||||
-- Only nil and false are falsy; 0 and '' are true!
|
||||
if not aBoolValue then print('twas false') end
|
||||
|
||||
-- 'or' and 'and' are short-circuited.
|
||||
-- This is similar to the a?b:c operator in C/js:
|
||||
ans = aBoolValue and 'yes' or 'no' --> 'no'
|
||||
|
||||
karlSum = 0
|
||||
for i = 1, 100 do -- The range includes both ends.
|
||||
karlSum = karlSum + i
|
||||
end
|
||||
|
||||
-- Use "100, 1, -1" as the range to count down:
|
||||
fredSum = 0
|
||||
for j = 100, 1, -1 do fredSum = fredSum + j end
|
||||
|
||||
-- In general, the range is begin, end[, step].
|
||||
|
||||
-- Another loop construct:
|
||||
repeat
|
||||
print('the way of the future')
|
||||
num = num - 1
|
||||
until num == 0
|
||||
|
||||
|
||||
----------------------------------------------------
|
||||
-- 2. Functions.
|
||||
----------------------------------------------------
|
||||
|
||||
function fib(n)
|
||||
if n < 2 then return 1 end
|
||||
return fib(n - 2) + fib(n - 1)
|
||||
end
|
||||
|
||||
-- Closures and anonymous functions are ok:
|
||||
function adder(x)
|
||||
-- The returned function is created when adder is
|
||||
-- called, and remembers the value of x:
|
||||
return function (y) return x + y end
|
||||
end
|
||||
a1 = adder(9)
|
||||
a2 = adder(36)
|
||||
print(a1(16)) --> 25
|
||||
print(a2(64)) --> 100
|
||||
|
||||
-- Returns, func calls, and assignments all work
|
||||
-- with lists that may be mismatched in length.
|
||||
-- Unmatched receivers are nil;
|
||||
-- unmatched senders are discarded.
|
||||
|
||||
x, y, z = 1, 2, 3, 4
|
||||
-- Now x = 1, y = 2, z = 3, and 4 is thrown away.
|
||||
|
||||
function bar(a, b, c)
|
||||
print(a, b, c)
|
||||
return 4, 8, 15, 16, 23, 42
|
||||
end
|
||||
|
||||
x, y = bar('zaphod') --> print zaphod nil nil
|
||||
-- Now x = 4, y = 8, values 15..42 are discarded.
|
||||
|
||||
-- Functions are first-class, may be local/global.
|
||||
-- These are the same:
|
||||
function f(x) return x * x end
|
||||
f = function (x) return x * x end
|
||||
|
||||
-- And so are these:
|
||||
local function g(x) return math.sin(x) end
|
||||
local g; g = function (x) return math.sin(x) end
|
||||
-- the 'local g' decl makes g-self-references ok.
|
||||
|
||||
-- Trig funcs work in radians, by the way.
|
||||
|
||||
-- Calls with one string param don't need parens:
|
||||
print 'hello' -- Works fine.
|
||||
|
||||
|
||||
----------------------------------------------------
|
||||
-- 3. Tables.
|
||||
----------------------------------------------------
|
||||
|
||||
-- Tables = Lua's only compound data structure;
|
||||
-- they are associative arrays.
|
||||
-- Similar to php arrays or js objects, they are
|
||||
-- hash-lookup dicts that can also be used as lists.
|
||||
|
||||
-- Using tables as dictionaries / maps:
|
||||
|
||||
-- Dict literals have string keys by default:
|
||||
t = {key1 = 'value1', key2 = false}
|
||||
|
||||
-- String keys can use js-like dot notation:
|
||||
print(t.key1) -- Prints 'value1'.
|
||||
t.newKey = {} -- Adds a new key/value pair.
|
||||
t.key2 = nil -- Removes key2 from the table.
|
||||
|
||||
-- Literal notation for any (non-nil) value as key:
|
||||
u = {['@!#'] = 'qbert', [{}] = 1729, [6.28] = 'tau'}
|
||||
print(u[6.28]) -- prints tau
|
||||
|
||||
-- Key matching is basically by value for numbers
|
||||
-- and strings, but by identity for tables.
|
||||
a = u['@!#'] -- Now a = 'qbert'.
|
||||
b = u[{}] -- We might expect 1729, but it's nil:
|
||||
-- b = nil since the lookup fails. It fails
|
||||
-- because the key we used is not the same object
|
||||
-- as the one used to store the original value. So
|
||||
-- strings & numbers are more portable keys.
|
||||
|
||||
-- A one-table-param function call needs no parens:
|
||||
function h(x) print(x.key1) end
|
||||
h{key1 = 'Sonmi~451'} -- Prints 'Sonmi~451'.
|
||||
|
||||
for key, val in pairs(u) do -- Table iteration.
|
||||
print(key, val)
|
||||
end
|
||||
|
||||
-- _G is a special table of all globals.
|
||||
print(_G['_G'] == _G) -- Prints 'true'.
|
||||
|
||||
-- Using tables as lists / arrays:
|
||||
|
||||
-- List literals implicitly set up int keys:
|
||||
v = {'value1', 'value2', 1.21, 'gigawatts'}
|
||||
for i = 1, #v do -- #v is the size of v for lists.
|
||||
print(v[i]) -- Indices start at 1 !! SO CRAZY!
|
||||
end
|
||||
-- A 'list' is not a real type. v is just a table
|
||||
-- with consecutive integer keys, treated as a list.
|
||||
|
||||
----------------------------------------------------
|
||||
-- 3.1 Metatables and metamethods.
|
||||
----------------------------------------------------
|
||||
|
||||
-- A table can have a metatable that gives the table
|
||||
-- operator-overloadish behavior. Later we'll see
|
||||
-- how metatables support js-prototypey behavior.
|
||||
|
||||
f1 = {a = 1, b = 2} -- Represents the fraction a/b.
|
||||
f2 = {a = 2, b = 3}
|
||||
|
||||
-- This would fail:
|
||||
-- s = f1 + f2
|
||||
|
||||
metafraction = {}
|
||||
function metafraction.__add(f1, f2)
|
||||
sum = {}
|
||||
sum.b = f1.b * f2.b
|
||||
sum.a = f1.a * f2.b + f2.a * f1.b
|
||||
return sum
|
||||
end
|
||||
|
||||
setmetatable(f1, metafraction)
|
||||
setmetatable(f2, metafraction)
|
||||
|
||||
s = f1 + f2 -- call __add(f1, f2) on f1's metatable
|
||||
|
||||
-- f1, f2 have no key for their metatable, unlike
|
||||
-- prototypes in js, so you must retrieve it as in
|
||||
-- getmetatable(f1). The metatable is a normal table
|
||||
-- with keys that Lua knows about, like __add.
|
||||
|
||||
-- But the next line fails since s has no metatable:
|
||||
-- t = s + s
|
||||
-- Class-like patterns given below would fix this.
|
||||
|
||||
-- An __index on a metatable overloads dot lookups:
|
||||
defaultFavs = {animal = 'gru', food = 'donuts'}
|
||||
myFavs = {food = 'pizza'}
|
||||
setmetatable(myFavs, {__index = defaultFavs})
|
||||
eatenBy = myFavs.animal -- works! thanks, metatable
|
||||
|
||||
-- Direct table lookups that fail will retry using
|
||||
-- the metatable's __index value, and this recurses.
|
||||
|
||||
-- An __index value can also be a function(tbl, key)
|
||||
-- for more customized lookups.
|
||||
|
||||
-- Values of __index,add, .. are called metamethods.
|
||||
-- Full list. Here a is a table with the metamethod.
|
||||
|
||||
-- __add(a, b) for a + b
|
||||
-- __sub(a, b) for a - b
|
||||
-- __mul(a, b) for a * b
|
||||
-- __div(a, b) for a / b
|
||||
-- __mod(a, b) for a % b
|
||||
-- __pow(a, b) for a ^ b
|
||||
-- __unm(a) for -a
|
||||
-- __concat(a, b) for a .. b
|
||||
-- __len(a) for #a
|
||||
-- __eq(a, b) for a == b
|
||||
-- __lt(a, b) for a < b
|
||||
-- __le(a, b) for a <= b
|
||||
-- __index(a, b) <fn or a table> for a.b
|
||||
-- __newindex(a, b, c) for a.b = c
|
||||
-- __call(a, ...) for a(...)
|
||||
|
||||
----------------------------------------------------
|
||||
-- 3.2 Class-like tables and inheritance.
|
||||
----------------------------------------------------
|
||||
|
||||
-- Classes aren't built in; there are different ways
|
||||
-- to make them using tables and metatables.
|
||||
|
||||
-- Explanation for this example is below it.
|
||||
|
||||
Dog = {} -- 1.
|
||||
|
||||
function Dog:new() -- 2.
|
||||
newObj = {sound = 'woof'} -- 3.
|
||||
self.__index = self -- 4.
|
||||
return setmetatable(newObj, self) -- 5.
|
||||
end
|
||||
|
||||
function Dog:makeSound() -- 6.
|
||||
print('I say ' .. self.sound)
|
||||
end
|
||||
|
||||
mrDog = Dog:new() -- 7.
|
||||
mrDog:makeSound() -- 'I say woof' -- 8.
|
||||
|
||||
-- 1. Dog acts like a class; it's really a table.
|
||||
-- 2. function tablename:fn(...) is the same as
|
||||
-- function tablename.fn(self, ...)
|
||||
-- The : just adds a first arg called self.
|
||||
-- Read 7 & 8 below for how self gets its value.
|
||||
-- 3. newObj will be an instance of class Dog.
|
||||
-- 4. self = the class being instantiated. Often
|
||||
-- self = Dog, but inheritance can change it.
|
||||
-- newObj gets self's functions when we set both
|
||||
-- newObj's metatable and self's __index to self.
|
||||
-- 5. Reminder: setmetatable returns its first arg.
|
||||
-- 6. The : works as in 2, but this time we expect
|
||||
-- self to be an instance instead of a class.
|
||||
-- 7. Same as Dog.new(Dog), so self = Dog in new().
|
||||
-- 8. Same as mrDog.makeSound(mrDog); self = mrDog.
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
-- Inheritance example:
|
||||
|
||||
LoudDog = Dog:new() -- 1.
|
||||
|
||||
function LoudDog:makeSound()
|
||||
s = self.sound .. ' ' -- 2.
|
||||
print(s .. s .. s)
|
||||
end
|
||||
|
||||
seymour = LoudDog:new() -- 3.
|
||||
seymour:makeSound() -- 'woof woof woof' -- 4.
|
||||
|
||||
-- 1. LoudDog gets Dog's methods and variables.
|
||||
-- 2. self has a 'sound' key from new(), see 3.
|
||||
-- 3. Same as LoudDog.new(LoudDog), and converted to
|
||||
-- Dog.new(LoudDog) as LoudDog has no 'new' key,
|
||||
-- but does have __index = Dog on its metatable.
|
||||
-- Result: seymour's metatable is LoudDog, and
|
||||
-- LoudDog.__index = LoudDog. So seymour.key will
|
||||
-- = seymour.key, LoudDog.key, Dog.key, whichever
|
||||
-- table is the first with the given key.
|
||||
-- 4. The 'makeSound' key is found in LoudDog; this
|
||||
-- is the same as LoudDog.makeSound(seymour).
|
||||
|
||||
-- If needed, a subclass's new() is like the base's:
|
||||
function LoudDog:new()
|
||||
newObj = {}
|
||||
-- set up newObj
|
||||
self.__index = self
|
||||
return setmetatable(newObj, self)
|
||||
end
|
||||
|
||||
----------------------------------------------------
|
||||
-- 4. Modules.
|
||||
----------------------------------------------------
|
||||
|
||||
|
||||
--[[ I'm commenting out this section so the rest of
|
||||
-- this script remains runnable.
|
||||
-- Suppose the file mod.lua looks like this:
|
||||
local M = {}
|
||||
|
||||
local function sayMyName()
|
||||
print('Hrunkner')
|
||||
end
|
||||
|
||||
function M.sayHello()
|
||||
print('Why hello there')
|
||||
sayMyName()
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
-- Another file can use mod.lua's functionality:
|
||||
local mod = require('mod') -- Run the file mod.lua.
|
||||
|
||||
-- require is the standard way to include modules.
|
||||
-- require acts like: (if not cached; see below)
|
||||
local mod = (function ()
|
||||
<contents of mod.lua>
|
||||
end)()
|
||||
-- It's like mod.lua is a function body, so that
|
||||
-- locals inside mod.lua are invisible outside it.
|
||||
|
||||
-- This works because mod here = M in mod.lua:
|
||||
mod.sayHello() -- Says hello to Hrunkner.
|
||||
|
||||
-- This is wrong; sayMyName only exists in mod.lua:
|
||||
mod.sayMyName() -- error
|
||||
|
||||
-- require's return values are cached so a file is
|
||||
-- run at most once, even when require'd many times.
|
||||
|
||||
-- Suppose mod2.lua contains print('Hi!').
|
||||
local a = require('mod2') -- Prints Hi!
|
||||
local b = require('mod2') -- Doesn't print; a=b.
|
||||
|
||||
-- dofile is like require without caching:
|
||||
dofile('mod2.lua') --> Hi!
|
||||
dofile('mod2.lua') --> Hi! (runs it again)
|
||||
|
||||
-- loadfile loads a lua file but doesn't run it yet.
|
||||
f = loadfile('mod2.lua') -- Call f() to run it.
|
||||
|
||||
-- loadstring is loadfile for strings.
|
||||
g = loadstring('print(343)') -- Returns a function.
|
||||
g() -- Prints out 343; nothing printed before now.
|
||||
|
||||
--]]
|
||||
|
||||
----------------------------------------------------
|
||||
-- 5. References.
|
||||
----------------------------------------------------
|
||||
|
||||
--[[
|
||||
|
||||
I was excited to learn Lua so I could make games
|
||||
with the Löve 2D game engine. That's the why.
|
||||
|
||||
I started with BlackBulletIV's Lua for programmers.
|
||||
Next I read the official Programming in Lua book.
|
||||
That's the how.
|
||||
|
||||
It might be helpful to check out the Lua short
|
||||
reference on lua-users.org.
|
||||
|
||||
The main topics not covered are standard libraries:
|
||||
* string library
|
||||
* table library
|
||||
* math library
|
||||
* io library
|
||||
* os library
|
||||
|
||||
By the way, this entire file is valid Lua; save it
|
||||
as learn.lua and run it with "lua learn.lua" !
|
||||
|
||||
This was first written for tylerneylon.com. It's
|
||||
also available as a github gist. Tutorials for other
|
||||
languages, in the same style as this one, are here:
|
||||
|
||||
http://learnxinyminutes.com/
|
||||
|
||||
Have fun with Lua!
|
||||
|
||||
--]]
|
||||
14
external/QCodeEditor/example/resources/code_samples/python.py
vendored
Normal file
14
external/QCodeEditor/example/resources/code_samples/python.py
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import numpy
|
||||
|
||||
def sqr_array(x):
|
||||
'''
|
||||
Documentation for sqr_array.
|
||||
A multi line string!'
|
||||
'''
|
||||
|
||||
return np.array(x)**2
|
||||
|
||||
s = 'this is a string'
|
||||
d = 10
|
||||
x = np.arange(0,d,d/10)
|
||||
y = sqr_array(x)
|
||||
69
external/QCodeEditor/example/resources/code_samples/shader.glsl
vendored
Normal file
69
external/QCodeEditor/example/resources/code_samples/shader.glsl
vendored
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
precision mediump float;
|
||||
|
||||
uniform vec2 resolution;
|
||||
uniform float time;
|
||||
|
||||
vec3 trans(vec3 p)
|
||||
{
|
||||
return mod(p, 8.0)-4.0;
|
||||
}
|
||||
|
||||
float distanceFunction(vec3 pos)
|
||||
{
|
||||
return length(trans(pos)) - 1.5;
|
||||
}
|
||||
|
||||
vec3 getNormal(vec3 p)
|
||||
{
|
||||
const float d = 0.0001;
|
||||
return
|
||||
normalize
|
||||
(
|
||||
vec3
|
||||
(
|
||||
distanceFunction(p+vec3(d, 0.0, 0))-distanceFunction(p+vec3(-d,0.0,0.0)),
|
||||
distanceFunction(p+vec3(0.0, d, 0.0))-distanceFunction(p+vec3(0.0,-d,0.0)),
|
||||
distanceFunction(p+vec3(0.0, 0.0, d))-distanceFunction(p+vec3(0.0,0.0,-d))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
void main() {
|
||||
vec2 pos = (gl_FragCoord.xy*2.0 -resolution) / resolution.y;
|
||||
|
||||
vec3 camPos = vec3(0.0, 0.0, 3.0);
|
||||
vec3 camDir = vec3(0.0, 0.0, -1.0);
|
||||
vec3 camUp = vec3(0.0, 1.0, 0.0);
|
||||
vec3 camSide = cross(camDir, camUp);
|
||||
float focus = sin(time)*1.5+4.0;
|
||||
|
||||
mat3 lense = mat3(1.,0.,0.,
|
||||
0.,888989898989898989,0.,
|
||||
0.,0.,1.);
|
||||
vec3 pos3 = vec3(pos,camDir.z*10.);
|
||||
camDir = vec3(
|
||||
camDir.x,
|
||||
camDir.y,
|
||||
camDir.z);
|
||||
camDir*=normalize(dot(camDir,pos3));
|
||||
vec3 rayDir = normalize(camSide*pos.x + camUp*pos.y + camDir*focus);
|
||||
|
||||
float t = 0.0, d;
|
||||
vec3 posOnRay = camPos;
|
||||
|
||||
for(int i=0; i<64; ++i)
|
||||
{
|
||||
d = distanceFunction(posOnRay);
|
||||
t += d;
|
||||
posOnRay = camPos + t*rayDir;
|
||||
}
|
||||
|
||||
vec3 normal = getNormal(posOnRay);
|
||||
if(abs(d) < 0.001)
|
||||
{
|
||||
gl_FragColor = vec4(normal, 1.0);
|
||||
}else
|
||||
{
|
||||
gl_FragColor = vec4(0.0);
|
||||
}
|
||||
}
|
||||
57
external/QCodeEditor/example/resources/code_samples/xml.xml
vendored
Normal file
57
external/QCodeEditor/example/resources/code_samples/xml.xml
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/xsl" href="myfile.xsl" ?>
|
||||
<bookstore specialty="novel">
|
||||
<book style="autobiography">
|
||||
<author>
|
||||
<first-name>Joe</first-name>
|
||||
<last-name>Bob</last-name>
|
||||
<award>Trenton Literary Review Honorable Mention</award>
|
||||
</author>
|
||||
<price>12</price>
|
||||
</book>
|
||||
<book style="textbook">
|
||||
<author>
|
||||
<first-name>Mary</first-name>
|
||||
<last-name>Bob</last-name>
|
||||
<publication>Selected Short Stories of
|
||||
<first-name>Mary</first-name>
|
||||
<last-name>Bob</last-name>
|
||||
</publication>
|
||||
</author>
|
||||
<editor>
|
||||
<first-name>Britney</first-name>
|
||||
<last-name>Bob</last-name>
|
||||
</editor>
|
||||
<price>55</price>
|
||||
</book>
|
||||
<magazine style="glossy" frequency="monthly">
|
||||
<price>2.50</price>
|
||||
<subscription price="24" per="year"/>
|
||||
</magazine>
|
||||
<book style="novel" id="myfave">
|
||||
<author>
|
||||
<first-name>Toni</first-name>
|
||||
<last-name>Bob</last-name>
|
||||
<degree from="Trenton U">B.A.</degree>
|
||||
<degree from="Harvard">Ph.D.</degree>
|
||||
<award>Pulitzer</award>
|
||||
<publication>Still in Trenton</publication>
|
||||
<publication>Trenton Forever</publication>
|
||||
</author>
|
||||
<price intl="Canada" exchange="0.7">6.50</price>
|
||||
<excerpt>
|
||||
<p>It was a dark and stormy night.</p>
|
||||
<p>But then all nights in Trenton seem dark and
|
||||
stormy to someone who has gone through what
|
||||
<emph>I</emph> have.</p>
|
||||
<definition-list>
|
||||
<term>Trenton</term>
|
||||
<definition>misery</definition>
|
||||
</definition-list>
|
||||
</excerpt>
|
||||
</book>
|
||||
<my:book xmlns:my="uri:mynamespace" style="leather" price="29.50">
|
||||
<my:title>Who's Who in Trenton</my:title>
|
||||
<my:author>Robert Bob</my:author>
|
||||
</my:book>
|
||||
</bookstore>
|
||||
11
external/QCodeEditor/example/resources/demo_resources.qrc
vendored
Normal file
11
external/QCodeEditor/example/resources/demo_resources.qrc
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>styles/drakula.xml</file>
|
||||
<file>code_samples/cxx.cpp</file>
|
||||
<file>code_samples/shader.glsl</file>
|
||||
<file>code_samples/xml.xml</file>
|
||||
<file>code_samples/json.json</file>
|
||||
<file>code_samples/lua.lua</file>
|
||||
<file>code_samples/python.py</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
66
external/QCodeEditor/example/resources/styles/drakula.xml
vendored
Normal file
66
external/QCodeEditor/example/resources/styles/drakula.xml
vendored
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<style-scheme version="1.0" name="Dracula">
|
||||
<style name="Text" foreground="#f8f8f2" background="#282a36"/>
|
||||
<style name="Link" foreground="#8be9fd" underlineStyle="SingleUnderline"/>
|
||||
<style name="Selection" background="#44475a"/>
|
||||
<style name="LineNumber" foreground="#6272a4"/>
|
||||
<style name="SearchResult" foreground="#d57544" bold="true"/>
|
||||
<style name="SearchScope" foreground="#000000" background="#f8f8f2"/>
|
||||
<style name="Parentheses" foreground="#f8f8f2" bold="true"/>
|
||||
<style name="ParenthesesMismatch" foreground="#f8f8f2"/>
|
||||
<style name="AutoComplete" foreground="#f8f8f2"/>
|
||||
<style name="CurrentLine" foreground="#000000" background="#383b4c"/>
|
||||
<style name="CurrentLineNumber" foreground="#f8f8f2"/>
|
||||
<style name="Occurrences" foreground="#000000" background="#f8f8f2"/>
|
||||
<style name="Occurrences.Unused" foreground="#f8f8f2"/>
|
||||
<style name="Occurrences.Rename" foreground="#000000" background="#f8f8f2"/>
|
||||
<style name="Number" foreground="#bd93f9"/>
|
||||
<style name="String" foreground="#f1fa8c"/>
|
||||
<style name="Type" foreground="#7ce4fb"/>
|
||||
<style name="Local" foreground="#ffffff"/>
|
||||
<style name="Global" foreground="#ffb86c"/>
|
||||
<style name="Field" foreground="#ffffff"/>
|
||||
<style name="Static" foreground="#ffb86c"/>
|
||||
<style name="VirtualMethod" foreground="#50fa7b" italic="true"/>
|
||||
<style name="Function" foreground="#50fa7b"/>
|
||||
<style name="Keyword" foreground="#ff79c6" bold="true"/>
|
||||
<style name="PrimitiveType" foreground="#7ce4fb" italic="true"/>
|
||||
<style name="Operator" foreground="#ffffff"/>
|
||||
<style name="Overloaded Operator"/>
|
||||
<style name="Preprocessor" foreground="#ff79c6"/>
|
||||
<style name="Label" foreground="#ffb86c"/>
|
||||
<style name="Comment" foreground="#6272a4" bold="true"/>
|
||||
<style name="Doxygen.Comment" foreground="#6272a4"/>
|
||||
<style name="Doxygen.Tag" foreground="#6272a4" bold="true"/>
|
||||
<style name="VisualWhitespace" foreground="#6272a4"/>
|
||||
<style name="QmlLocalId" foreground="#50fa7b" italic="true"/>
|
||||
<style name="QmlExternalId" foreground="#ffb86c" italic="true"/>
|
||||
<style name="QmlTypeId" foreground="#8be9fd"/>
|
||||
<style name="QmlRootObjectProperty" foreground="#50fa7b" italic="true"/>
|
||||
<style name="QmlScopeObjectProperty" foreground="#50fa7b" italic="true"/>
|
||||
<style name="QmlExternalObjectProperty" foreground="#ffb86c" italic="true"/>
|
||||
<style name="JsScopeVar" foreground="#bd93f9" italic="true"/>
|
||||
<style name="JsImportVar" foreground="#8be9fd" italic="true"/>
|
||||
<style name="JsGlobalVar" foreground="#8be9fd" italic="true"/>
|
||||
<style name="QmlStateName" foreground="#50fa7b" italic="true"/>
|
||||
<style name="Binding" foreground="#ff79c6"/>
|
||||
<style name="DisabledCode" foreground="#6272a4"/>
|
||||
<style name="AddedLine" foreground="#50fa7b"/>
|
||||
<style name="RemovedLine" foreground="#ff5555"/>
|
||||
<style name="DiffFile" foreground="#8be9fd"/>
|
||||
<style name="DiffLocation" foreground="#ffb86c"/>
|
||||
<style name="DiffFileLine" foreground="#282a36" background="#f1fa8c"/>
|
||||
<style name="DiffContextLine" foreground="#282a36" background="#8be9fd"/>
|
||||
<style name="DiffSourceLine" background="#ff5555"/>
|
||||
<style name="DiffSourceChar" background="#cc2222"/>
|
||||
<style name="DiffDestLine" foreground="#282a36" background="#50fa7b"/>
|
||||
<style name="DiffDestChar" foreground="#282a36" background="#1dc748"/>
|
||||
<style name="LogChangeLine" foreground="#ff5555"/>
|
||||
<style name="Warning" underlineColor="#ffb86c" underlineStyle="SingleUnderline"/>
|
||||
<style name="WarningContext" underlineColor="#ffb86c" underlineStyle="DotLine"/>
|
||||
<style name="Error" underlineColor="#ff5555" underlineStyle="SingleUnderline"/>
|
||||
<style name="ErrorContext" underlineColor="#ff5555" underlineStyle="DotLine"/>
|
||||
<style name="Declaration" bold="true"/>
|
||||
<style name="FunctionDefinition"/>
|
||||
<style name="OutputArgument" italic="true"/>
|
||||
</style-scheme>
|
||||
Loading…
Add table
Add a link
Reference in a new issue