artem3213212 / cuda_tree_xml Goto Github PK
View Code? Open in Web Editor NEWCudaText tree helper for HTML/XML lexers
CudaText tree helper for HTML/XML lexers
see tests/broken1.xml
File "C:\Cudatext\py\cuda_tree_xml\__init__.py", line 88
if not((temp.lower()in['?php','?xml','!doctype'])or(temp[0]=='%' and temp[-1]=='%'))):
^
SyntaxError: invalid syntax
давай упростим. не чекаем конец % и чекаем только один символ temp[0] in '!?%'
and temp.lower()=='!doctype')or(temp.lower()in['?php','?xml'])):
-> s in [.., .., ..];
DocType проверить на любом месте дока
skip all PHP blocks, dont show them
<html>
<head>
<title>Untitled</title>
</head>
<body>
ee
<?php
echo 'test';
print (20);
print (20);
print (20);
print (20);
print (20);
print (20);
?>
©
</body>
</html>
CudaText tree helper for HTML/XML lexers
syntetic test.
1- ignore "ee" tag with space
2- you missed <ddd>
in tree
<ddd>
< ee >
dd
</ee>
</ddd>
it outs to Console.
прикрепил файл. зарепорчено на Куд форуме испанским юзером.
надо чтобы вложенность была правильная, а пока что хелпер показывает узлы body/header/html в одном уровне!
e.g.
<incategory category="category540"/>
<incategory category="category418"/>
<incategory category="category985"/>
<incategory category="category787"/>
<incategory category="category12"/>
current icon: folder.
pls change to: arrow (green or yellow).
http://wiki.freepascal.org/ATSynEdit_EControl_adapter#Syntax_tree_icons
and: make index of icon - const ICON_TAG=7. to easyly change it.
<!doctype test="123">
<!-- comment -->
<meta1/>
<meta2>text</meta3>
<% asp text %>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.