0
Under review

Can’t Search/Replace quotation (“) marks!

drfonz 7 years ago updated by Alexander Blach (Developer) 6 years ago 6

When doing a basic search for “” in order to replace with “0” no results are returned even though the CSV file in question is full of these! This is the only reason I purchased this app for, so I feel cheated of my £9,99!!

0
Under review

My php code is no longer highlighted. It's all black text now! What happened?

clw 7 years ago updated by Alexander Blach (Developer) 7 years ago 1
0

Open any file similar to iEditor

kevleyski 7 years ago updated by anonymous 7 years ago 3

Sometimes you have a file you know is text burn don't have an app that handles it directly. Textastic should be one of the options to open it with similar to how iEditor will let you

0

No code completion for C++

929077340 7 years ago 0

no code completion for C++, and lack syntax for basic operations and structs.

0

Price of update

Tom 7 years ago updated by Alexander Blach (Developer) 7 years ago 1

I would have liked an update version from the old textastic instead of having to pay the full price again.

0
Under review

why this app cant show Chinese

1156531811 7 years ago updated by Alexander Blach (Developer) 7 years ago 1
0
Under review

I can’t run the code

marc torras larson 7 years ago updated by Alexander Blach (Developer) 7 years ago 1

I can’t seem to immediately run the code I am using...

0

Smart Indent

david marzahn privat 7 years ago 0

Indent content in combination with auto brackets (hopefully coming soon).

0

Loading Zip

GS AED 8 years ago 0

Losing ZIP files from  my IPAD is not working, impossible to extract.

0

Snippet to generate custom JavaScript CodeCompletion file

Tapsi 8 years ago updated 8 years ago 3

Hi guys,


I wrote a small snippet to generate custom JS code completion description files. It can be executed at runtime and parses all objects from the global object and tries to extract their API.


I know at the moment Textastic does not supports suggestion of file symbols nor project wide symbols. That's why this snippets maybe helps people to workaround that missing feature.

At the moment this snippet is very limited and only makes the method names available in the editor without any context. I plan to add the context information and maybe also the function parameters for the completion data.  


So if you're interested in this snippet, then I can share future versions of the script here. :) 




const logCompletionDescriptionData = () => {
          const getSymbols = function() {
            const getSymbolsOfObject = (obj, symbols = [], level = 0) => {
              if (level == 5) return []
              return Object
                .keys(obj)
                .filter(key => symbols.indexOf(key) === -1)
                .filter(key => isNaN(parseInt(key)))
                .map((key, i, array) => {
                  const value = obj[key]
                  if (!value) return [key]
                  
                  const isArray = Array.isArray(value)
                  const isFunction = typeof value === "function"
                  
                  if (!isArray && !isFunction) {
                    return [key].concat(getSymbolsOfObject(value, array, level + 1))
                  }
                  
                  return [key]
                })
                .reduce((a, b) => a.concat(b), [])
                .filter((value, index, self) => self.indexOf(value) === index)
                .sort((a,b) => a < b ? -1 : +1)
            }
              
            return getSymbolsOfObject(window) 
          }     
          
          const metaData = {
            "description": "BlackCats Code",
            "uuid": "DE267669-E66E-400A-ACEA-BD906DC2B813",
            "completionSets": [
              {
                "name": "js.blackcat.code",
                "strings": getSymbols()
              }
            ],
            "contexts": [
              {
                "description": "root",
                "scope": "source.js - comment - string",
                "pattern": "(?<!\\.)\\b([a-zA-Z]*)",
                "completionCaptureIndex": 1,
                "completionSetNames": [
                  "js.blackcat.code"
                ]
              }
            ]
          }
          
          console.log(JSON.stringify(metaData, null, 2))
      }