Giter VIP home page Giter VIP logo

cuda_tree_xml's People

Contributors

alexey-t avatar artem3213212 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

cudatext-addons

cuda_tree_xml's Issues

bug+ optimize

  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 '!?%'

optimize?

and temp.lower()=='!doctype')or(temp.lower()in['?php','?xml'])):

-> s in [.., .., ..];

DocType проверить на любом месте дока

must skip PHP parts

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);
?>
&copy;

</body>
</html>

JS code gives "tags"

must ignore all JS blocks, inside <script>.
see screenshot - which node shown on left.
and its line on right.

screenshot from 2018-10-24 18-26-44

file tests/yahoo.

incorrect code-tree in this sample file (300 lines)

прикрепил файл. зарепорчено на Куд форуме испанским юзером.

надо чтобы вложенность была правильная, а пока что хелпер показывает узлы body/header/html в одном уровне!

bad-tree.zip

bug on XML tag <dddd dd dd />

e.g.

        <incategory category="category540"/>
        <incategory category="category418"/>
        <incategory category="category985"/>
        <incategory category="category787"/>
        <incategory category="category12"/>

must ignore <% ... %>

<!doctype test="123">
<!-- comment -->
<meta1/>
<meta2>text</meta3>
<% asp text %>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.