Giter Site home page Giter Site logo

Comments (8)

philwareham avatar philwareham commented on August 16, 2024

But @gocom states .txp as one of the possible file extensions. There may be a good reason for using .html (syntax highlighting), however I use the Coda Textpattern mode which recognises .txp extensions and provides better highlighting for that. I'll let Jukka make the final decision on this.

from textpattern-default-theme.

petecooper avatar petecooper commented on August 16, 2024

Personally, it makes no difference to me either way - I'm also a Coda jockey, but without the Textpattern plugin. The basis for this is that I'm making a new theme and I've looked at the source for textpattern-default-theme, which refers (quite rightly) to *.txp files. I recalled @gocom's comments about *.html from the linked thread, and was curious about the disparity. Please don't take this issue as me rabble rousing or being That Guy, Phil - I'm just attempting to unify some stuff and -- perhaps unrealistically -- kickstart a somewhat stagnant 3rd party front-end theme development effort.

from textpattern-default-theme.

philwareham avatar philwareham commented on August 16, 2024

All comments and discussions are good even if they don't eventually become commits, so don't be shy in raising issues. I don't know if *.html is better than *.txp - I can see arguments for both cases (more people will be using IDEs that recognise *.html rather than amount of users with Coda and Textpattern Mode, for example).

from textpattern-default-theme.

petecooper avatar petecooper commented on August 16, 2024

In the same vein, forms aren't necessarily HTML; some are, some aren't - put a Textpattern tag in and it's no longer HTML, right? Thinking out loud (and rhetorically, too), that can be ignored.

from textpattern-default-theme.

philwareham avatar philwareham commented on August 16, 2024

Off topic - the Textpattern bits for Coda can be found here: https://github.com/philwareham/Textpattern-for-Panic-Coda

The mode works fairly OK - I fudged it together from someone else's initial work without really knowing much about how it functions. Code auto-completion doesn't work though for Textpattern tags.

from textpattern-default-theme.

philwareham avatar philwareham commented on August 16, 2024

Yeah, as soon as Textpattern tags are used it's not strictly HTML - and Textpattern forms could just be a Textpattern tag and nothing else, in theory (although that's a bit wasteful).

from textpattern-default-theme.

gocom avatar gocom commented on August 16, 2024

The txp extension is fine. Most editors allow mapping file extensions anyways (unless your editor is absolute garbage), and using distinct one allows the editor to give specific syntax support and autocompletion for Textpattern templates.

In the same vein, forms aren't necessarily HTML; some are, some aren't - put a Textpattern tag in and it's no longer HTML, right? Thinking out loud (and rhetorically, too), that can be ignored.

Template files are just data. The extension tells the system consuming the data what it should use it as, an not necessarily what it actually contains, or what the included templating or programming language generates.

from textpattern-default-theme.

mauricevancooten avatar mauricevancooten commented on August 16, 2024

Works fine for Sublime Textedit 2. I found the .txp extensions self explanatory, for the syntax rendering I set the files to HTML, works!

from textpattern-default-theme.

Related Issues (20)

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.