Showing preview only (675K chars total). Download the full file or copy to clipboard to get everything.
Repository: billthefarmer/editor
Branch: master
Commit: 74d00f15570a
Files: 168
Total size: 617.7 KB
Directory structure:
gitextract_btz8p0l7/
├── .github/
│ └── workflows/
│ ├── build.yml
│ └── release.yml
├── .gitignore
├── Charset.md
├── Chooser.md
├── LICENSE
├── Mode.md
├── README.md
├── Syntax.md
├── build.gradle
├── docs/
│ ├── 404.html
│ ├── categories/
│ │ └── index.xml
│ ├── css/
│ │ ├── custom.css
│ │ └── styles.css
│ ├── index.html
│ ├── index.xml
│ ├── introduction/
│ │ └── index.xml
│ ├── sitemap.xml
│ ├── tags/
│ │ └── index.xml
│ └── using/
│ └── index.xml
├── fastlane/
│ └── metadata/
│ └── android/
│ ├── en/
│ │ ├── changelogs/
│ │ │ ├── 1193.txt
│ │ │ ├── 162.txt
│ │ │ ├── 163.txt
│ │ │ ├── 164.txt
│ │ │ ├── 165.txt
│ │ │ ├── 166.txt
│ │ │ ├── 167.txt
│ │ │ ├── 168.txt
│ │ │ ├── 169.txt
│ │ │ ├── 170.txt
│ │ │ ├── 171.txt
│ │ │ ├── 172.txt
│ │ │ ├── 173.txt
│ │ │ ├── 174.txt
│ │ │ ├── 175.txt
│ │ │ ├── 176.txt
│ │ │ ├── 177.txt
│ │ │ ├── 178.txt
│ │ │ ├── 179.txt
│ │ │ ├── 180.txt
│ │ │ ├── 181.txt
│ │ │ ├── 182.txt
│ │ │ ├── 183.txt
│ │ │ ├── 184.txt
│ │ │ ├── 185.txt
│ │ │ ├── 186.txt
│ │ │ ├── 187.txt
│ │ │ ├── 188.txt
│ │ │ ├── 189.txt
│ │ │ ├── 190.txt
│ │ │ ├── 191.txt
│ │ │ ├── 192.txt
│ │ │ ├── 194.txt
│ │ │ ├── 195.txt
│ │ │ ├── 196.txt
│ │ │ └── 197.txt
│ │ ├── full_description.txt
│ │ ├── short_description.txt
│ │ └── title.txt
│ ├── hu/
│ │ ├── changelogs/
│ │ │ ├── 162.txt
│ │ │ ├── 163.txt
│ │ │ ├── 164.txt
│ │ │ ├── 165.txt
│ │ │ ├── 166.txt
│ │ │ ├── 167.txt
│ │ │ ├── 168.txt
│ │ │ ├── 169.txt
│ │ │ ├── 170.txt
│ │ │ └── 171.txt
│ │ ├── full_description.txt
│ │ ├── short_description.txt
│ │ └── title.txt
│ └── ja/
│ ├── changelogs/
│ │ ├── 162.txt
│ │ ├── 163.txt
│ │ ├── 164.txt
│ │ ├── 165.txt
│ │ ├── 166.txt
│ │ ├── 167.txt
│ │ ├── 168.txt
│ │ ├── 169.txt
│ │ ├── 170.txt
│ │ ├── 171.txt
│ │ ├── 172.txt
│ │ └── 173.txt
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
├── gradle/
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
└── src/
└── main/
├── AndroidManifest.xml
├── java/
│ ├── android/
│ │ └── support/
│ │ └── v4/
│ │ └── content/
│ │ └── FileProvider.java
│ ├── com/
│ │ └── ibm/
│ │ └── icu/
│ │ └── text/
│ │ ├── CharsetDetector.java
│ │ ├── CharsetMatch.java
│ │ ├── CharsetRecog_2022.java
│ │ ├── CharsetRecog_UTF8.java
│ │ ├── CharsetRecog_Unicode.java
│ │ ├── CharsetRecog_mbcs.java
│ │ ├── CharsetRecog_sbcs.java
│ │ └── CharsetRecognizer.java
│ └── org/
│ └── billthefarmer/
│ └── editor/
│ ├── Editor.java
│ ├── FileAdapter.java
│ ├── FileUtils.java
│ ├── NewFile.java
│ └── OpenFile.java
└── res/
├── color/
│ └── text_color_retro.xml
├── drawable/
│ ├── ic_add_black_24dp.xml
│ ├── ic_add_white_24dp.xml
│ ├── ic_edit_black_24dp.xml
│ ├── ic_edit_white_24dp.xml
│ ├── ic_folder_open_black_24dp.xml
│ ├── ic_folder_open_white_24dp.xml
│ ├── ic_image_black_24dp.xml
│ ├── ic_image_white_24dp.xml
│ ├── ic_list_black_24dp.xml
│ ├── ic_list_white_24dp.xml
│ ├── ic_reply_black_24dp.xml
│ ├── ic_reply_white_24dp.xml
│ ├── ic_save_black_24dp.xml
│ ├── ic_save_white_24dp.xml
│ ├── ic_sd_storage_black_24dp.xml
│ ├── ic_sd_storage_white_24dp.xml
│ ├── ic_stop_black_24dp.xml
│ ├── ic_stop_white_24dp.xml
│ ├── ic_videocam_black_24dp.xml
│ ├── ic_videocam_white_24dp.xml
│ ├── ic_volume_up_black_24dp.xml
│ └── ic_volume_up_white_24dp.xml
├── layout/
│ ├── custom.xml
│ ├── edit.xml
│ ├── file.xml
│ ├── open_file.xml
│ ├── save_path.xml
│ ├── seek_bar.xml
│ └── wrap.xml
├── menu/
│ └── main.xml
├── values/
│ ├── arrays.xml
│ ├── attrs.xml
│ ├── colours.xml
│ ├── strings.xml
│ └── styles.xml
├── values-ar/
│ └── strings.xml
├── values-be/
│ └── strings.xml
├── values-de/
│ └── strings.xml
├── values-el/
│ └── strings.xml
├── values-es/
│ └── strings.xml
├── values-eu/
│ └── strings.xml
├── values-fa/
│ └── strings.xml
├── values-fr/
│ └── strings.xml
├── values-hu/
│ └── strings.xml
├── values-is/
│ └── strings.xml
├── values-it/
│ └── strings.xml
├── values-ja/
│ └── strings.xml
├── values-ku-rIQ/
│ └── strings.xml
├── values-lv/
│ └── strings.xml
├── values-nl/
│ └── strings.xml
├── values-pl/
│ └── strings.xml
├── values-pt/
│ └── strings.xml
├── values-pt-rBR/
│ └── strings.xml
├── values-ru/
│ └── strings.xml
├── values-tr/
│ └── strings.xml
├── values-uk/
│ └── strings.xml
├── values-zh-rCN/
│ └── strings.xml
├── values-zh-rTW/
│ └── strings.xml
└── xml/
├── filepaths.xml
└── shortcuts.xml
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/workflows/build.yml
================================================
# Build on push and PR events
on:
push:
branches:
- master
tags-ignore:
- '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: "actions/checkout@v3"
- name: Build with Gradle
run: ./gradlew build
================================================
FILE: .github/workflows/release.yml
================================================
# Release on new tags
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- name: Get the tag version
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: "Version ${{ steps.version.outputs.VERSION }}"
body: ""
================================================
FILE: .gitignore
================================================
.gradle/
build/
local.properties
*.iml
.idea/
data/
*.orig
*~
*.apk
================================================
FILE: Charset.md
================================================
# Character set

## Default
The default character set is set to `UTF-8` on selecting **New** from
the toolbar. It may be changed in the menu. Android defaults to
`UTF-8`, don't use anything else unless you are sure what you are
doing.
## Detection
The current character set is optionally detected on reading a file by
the detection code from [International Components for
Unicode](https://unicode-org.github.io/icu/userguide/icu4j). If there
are no accented characters or symbols in the text to give the
detection algorithm something to work on it may not get it right.
## Saving
Files will be saved using the current character set. To change it, use
the **Charset** item in the menu, which shows the current set.
**Caution** – If you add accented characters or symbols to the
text, make sure to check the current character set before you save it.
## Mode line
The character set may be set to `UTF-8` by using a mode line in the text.
```
# ed: cs:u
```
See [Mode line](Mode.md) for details.
================================================
FILE: Chooser.md
================================================
# File Chooser

The chooser shows a scrollable row of folder buttons and a list of
files with icons. Files which appear to be media files, or are too
large will be disabled and not selectable. Touch a folder button or
folder to change folder, or a file to open a file. Hidden files
beginning with a '.' will not appear.
The parent folder, if it exists, will appear first in the list. Touch
that folder to move up the directory tree. If a folder is not
accessible, the chooser will show the parent folder, if it exists, and
the external storage folder (`/storage/emulated/0`).
Use the **Storage** button to open files using the android file
manager. This should ensure that files on removeable SD cards can be
saved using the **Save** button. The file manager may refuse to open
some types of text files not recognised by android.
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
================================================
FILE: Mode.md
================================================
# Mode line
If a line of text is found within the first or last two or three lines
of the file which matches the mode line pattern, the mode of the
editor will be changed after the file is loaded. The pattern is one or
more text or punctuation characters, white space, the text `ed:`
followed by one or more option patterns separated by white space.
```
# ed: [[no]vw] [[no]ww] [[no]sg] [[no]hs] [cs:u] [th:l|d|s|w|b|r] [ts:l|m|s] [tf:m|p|s]
```
The initial text or punctuation characters are intended to be used to
hide the mode line from compilers and interpreters by commenting it
out.
The option patterns are:
* **[no]vw** – View files read only
* **[no]ww** – Word wrap
* **[no]sg** – Suggestions
* **[no]hs** – Syntax highlighting
* **cs:u** – Character set – UTF-8
* **th:l|d|s|w|b|r** – Theme – light, dark, system,
white, black or retro
* **ts:l|m|s** – Text size – large, medium or small
* **tf:m|p|s** – Typeface – monospace, proportional
(sans) or serif
The mode line is read after the file is loaded and will change
immediately, except in Android 6, Marshmallow due to an obscure
bug. Rotate the device to change mode.
================================================
FILE: README.md
================================================
#  Editor  [](https://github.com/billthefarmer/editor/releases)
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.svg" alt="Get it on F-Droid" height="80">](https://f-droid.org/packages/org.billthefarmer.editor)
Android simple generic text editor. The app is available from
[F-Droid](https://f-droid.org/packages/org.billthefarmer.editor)
and [here](https://github.com/billthefarmer/editor/releases)
### Issues
There have been a number of issues raised on this app where users have
obviously not read this README, looked at the
[documentation](https://billthefarmer.github.io/editor/), or looked at
old closed issues. Please read the README, read the
[docs](https://billthefarmer.github.io/editor/), and look at the old
issues before raising another one, you can search the issues from the
box at the top.
### Large files
Editor loads the whole of file to be edited into memory. It will not
load large files (larger than ~500Kb) which would cause performance
issues or cause the app to crash. Please do not raise issues about
the **Too large** dialog shown when attempting to load a large file.
 


This is a fairly simple generic text editor which may be used
standalone or to show or edit any sort of text file from another
app. If you select a text file in a file manager or similar app you
will be offered the option of using this editor along with whatever
other apps you have installed that can show or edit a text file. Files
will initially be opened read only, long touch on the display or touch
the edit item in the toolbar to enable editing.
There are five toolbar items which may appear:
* **Edit** – Edit the current read only file
* **View** – View the current file read only
* **Save** – Save the current file if modified
* **New** – Start a new empty file
* **Open** – Open a text file using a chooser
And on the menu:
* **Open recent** – Pop up a list of recent files
* **Clear list** – Clear list of recent files
* **Search** – Interactive search of text using a regular
expression
* **Find all** – Find all recent files containing search text
* **Save as** – Save the current file with a new name
* **Go to** – Scroll to selected position in file
* **Print** – Print current file
* **View markdown** – View markdown in browser or html viewer
* **Charset** – Change the current character set, shows current set
* **Options** – Select options
* **View files** – Open files read only for viewing
* **Open last** – Open last opened file on startup
* **Auto save** – Save the current file on app pause
* **Word wrap** – Limit text width to screen width and word wrap
* **Suggestions** – Text input and spelling suggestions
* **Highlight syntax** – Highlight programming language syntax
* **Theme** – Choose theme
* **Light**
* **Dark**
* **System**
* **White**
* **Black**
* **Retro**
* **Text size** – Choose text size
* **Small**
* **Medium**
* **Large**
* **Typeface** – Choose typeface
* **About** – Show version, copyright and licence
### Edit
Edit the current read only text.
### View
View the current file read only.
### Save
Save the current file if modified.
### New
Start a new empty file. Use the **Save as** item to save the new file.
### Open
Choose a file to open from the chooser dialog that pops up. The parent
folder will be the first in the list. See [File
Chooser](Chooser.md). The file will initially be read-only. Touch the
**Edit** toolbar item to enable editing.
### Open recent
Choose a file from the list that pops up. As above the file will
initially be read only. The last entry, **Clear list**, will clear the
list.
### Save as
Use the dialog and the **Save** button or the **Storage** button to
use the android file manager to save the file.
### Search
Enter search text in the field that pops up in the toolbar. The first
matching item will be highlighted. Use the search button in the
keyboard for find next. The exact regular expression syntax used is in
the android documentation for
[Pattern](https://developer.android.com/reference/java/util/regex/Pattern#sum).
Odd text patterns unlikely to be found in an ordinary source file can
hang the regex functionality so the app stops working. There is no way
to predict or recover from this.
### Find all
You may find all recent files that contain the current search
text. This menu item will only appear while the search widget is
active. A dialog will pop up with a list of matching files. Touch an
entry to open that file. You may repeat this or refine the search text
to find the desired file.
### Go to
Select position in the current file on the horizontal seek bar in the
dialog which will pop up.
### Print
Print the current file. If you would like the output highlighted, you
will need to scroll slowly through the whole file to give the app a
chance to highlight it. **Caution** – Attempting to print a
large file on an older device with limited resources may cause the app
to stop responding.
### View markdown
You will be prompted to choose a viewer for an html file containing
the encoded markdown from the current open file. If the text contains
no markdown the result will be the same text.
### Shortcuts
You may create a **New file** or an **Open file** shortcut in the
launcher. The **New file** widget will create an shortcut to open a
new file in Editor. The **Open file** widget will pop up a dialog
showing the file chooser. You may choose a file or use the **Storage**
button. You may cancel and fill in the name and path fields, or edit
the name or path fields after choosing a file. Use the **Create**
button to create the shortcut. **Note** – content URIs returned
by the android file picker will not be resolved.
### Regular expressions
Explaining [regular
expressions](https://en.wikipedia.org/wiki/Regular_expression) used in
the text search is beyond the scope of this README. There is at least
one
[book](https://www.oreilly.com/library/view/mastering-regular-expressions/0596528124/)
devoted to the subject. Use `(?i)` for case insensitive search.
### Character set
The current character set is displayed under the current file
name. The character set is optionally detected when a new file is
read. It may be changed by selecting the **Charset** item in the menu,
which shows the current character set. See [Character
set](Charset.md).
### Typeface
The **Typeface** menu item shows a choice of common typefaces. These
are aliases for the fonts commonly provided on android devices. Some
of them resolve to the same font, depending on the device.
### Highlight syntax
If the current open file is a C, C++, Objective C, Go, Dart, Java,
Javascript, Python, Shell script, Swift, Rust, CSS, HTML, Org or
Markdown file, the keywords, classes comments, strings, etc will be
highlighted. See [Syntax Highlighting](Syntax.md).
### Mode line
If a line of text is found within the first or last two or three lines
of the file which matches the mode line pattern, the mode of the
editor will be changed after the file is loaded. See [Mode
line](Mode.md).
```
# ed: [[no]vw] [[no]ww] [[no]sg] [[no]hs] [cs:u] [th:l|d|s|w|b|r] [ts:l|m|s] [tf:m|p|s]
```
### Word count
The file word count and character count are shown in the toolbar. Due
to the algorithm used, the result may differ from that produced by
other utilities.
### Extended selection
If the file being edited is not a plain text file, selections created
by double tapping or long touching on the text will be extended to
enclosing delimiters (brackets, quotes) on the same text line.
### Text size
Text size may be changed from the menu or by pinch or expand gestures
on the text or by doubletap and swipe. The response to gestures on
large files may be slow or delayed.
### Unsaved file
If you touch the new, back or open button, and the current file has been
modified, you will be prompted whether you want to save it, else the
editor will just exit or open a file chooser. The current file may be
saved on app pause using the menu option. The scroll position and name
will be remembered for the last 10 files opened.
### Changed file
If a file has changed in storage while it was open in the editor, if
you attempt to save it, or the app is resumed, you will be prompted
whether to overwrite or reload the file.
### Default file
If there is no open file any text entered will by default be saved in
`Documents/Editor.txt`. This file will be loaded on start if it
exists. Use the `Save as` menu item to save it elsewhere.
### Shared file
Text files opened or shared by another app may be viewed and
edited. Some apps may share files or text using a `content` URI that
is not resolvable to a path to a file in storage. In that case the
editor will read the file into a new file. The **Save** item will save
the file in the original location if possible.
**Note** – Apps that share files will usually only give another
app read permission. Use the **Save as** menu item to save the file
elsewhere.
### Keyboard shortcuts
When using an external keyboard, some keyboard shortcuts are
implemented:
* Ctrl+E – Edit mode
* Ctrl+Shift+E – View mode
* Ctrl+F – Search
* Ctrl+Shift+F – Close search
* Ctrl+Alt+F – Find next
* Ctrl+G – Go to
* Ctrl+M – Show menu
* Ctrl+N – New file
* Ctrl+O – Open file
* Ctrl+S – Save file
* Ctrl+Shift+S – Save as
* Ctrl++ – Increase text size
* Ctrl+- – Decrease text size
* F3 – Find next
* F10 – Show menu
Many other shortcuts – Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z
are already build in to android.
### SD cards
Android allows removable SD cards to be used like a USB stick or as
part of the device storage. Files opened using the file chooser on a
removable SD card may not save successfully using the save button. Use
the **Save as** menu item and the **Storage** button to save it using
the android file manager. Alternatively use the **Storage** button on
the file chooser dialog to open the file using the android file
manager. See [File Chooser](Chooser.md).
================================================
FILE: Syntax.md
================================================
# Syntax Highlighting
## Selection
The type of highlighting is selected by file extension. Files with
`.c`, `.cc`, `.c++`, `.cxx`, `.m`, `.h`, `.go`, `.js`, `.java`, `.py`,
`.sh`, `.swift` extensions will be highlighted with 'C' style
highlighting. Files with `.htm`, `.html` extensions will be
highlighted as HTML. Files with `.cs`, `.css` extensions will be
highlighted as CSS. Files with `.org` extension will be highlighted as
Emacs Org. Files with `.md` extensions will be highlighted as
markdown.
## Parsing
The algorithm makes no attempt at parsing. The text is scanned for
relevent keywords, classes, constants, strings and comments and
highlighted accordingly. Therefore it will not be exactly correct, but
good enough for a simple text editor. See [Source Code Syntax
Highlighting][1].
### C type
Keywords and types are matched from lists of C/C++/Objective
C/Dart/Go/Java/Javascript/Python/Shell/Swift/Rust keywords and
types. Classes are capitalised words. Constants are all caps
words. Strings are in double quotes. Single quotes are ignored because
apostrophes break the algorithm. Both `/* */` and `// ` C style
comments and `# ` Shell script style comments are recognised.
### HTML
HTML keywords are matched from a list. Double quoted arguments are
highlighted. As above, single quotes are ignored. HTML comments `<!--
-->` are recognised.
### CSS
CSS style names are matched from a list. Double quoted arguments are
highlighted. As above, single quotes are ignored. C style comments are
recognised.
### Emacs Org
Metadata, headers, links, emphasis and inline code will be highlighted.
### Markdown
Markdown headers, links, emphasis and code will be highlighted.
### Default
Files with unrecognised extensions which are not plain text files
will be highlighted with default highlighting, similar to C type
highlighting. Comments will not be highlighted as there is little
consistency with comment delimiters outside C type languages.
**Caution** Files with strings of symbols may defeat the
regex processing and cause the app to stop responding.
## Limitations
Because scanning and highlighting a large file can be quite slow,
making the app unresponsive, only the text currently in view is
scanned and highlighted. Therefore as the text is edited or scrolled,
the new region in view will be scanned and highlighted after a short
delay to allow for user typing without the highlighting running
constantly.
### Scrolling
After the text is highlighted, the android view system will re-layout
the views whether they need it or not. That causes the current cursor
position to be scrolled back into view, which can be extremely
annoying. So the cursor is moved if necessary to keep it within the
visible region.
### Horizontal scrolling
On devices running android versions less than Marshmallow M (6),
horizontal scrolling will scroll back again. Make the text size
smaller or rotate the device to avoid this. Or turn the highlighting
off.
[1]: https://billthefarmer.github.io/blog/post/source-code-highlighting (https://billthefarmer.github.io/blog/post/source-code-highlighting)
================================================
FILE: build.gradle
================================================
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.13.2'
}
}
allprojects {
repositories {
mavenCentral()
google()
}
tasks.withType(JavaCompile) {
options.deprecation = true
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 35
namespace = "org.billthefarmer.editor"
defaultConfig {
applicationId "org.billthefarmer.editor"
minSdkVersion 21
targetSdkVersion 35
versionName "1.97"
versionCode 197
buildConfigField "long", "BUILT", System.currentTimeMillis() + "L"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_9
targetCompatibility JavaVersion.VERSION_1_9
}
buildFeatures {
buildConfig = true
}
lintOptions {
disable 'ScopedStorage', 'OldTargetApi', 'NonConstantResourceId', 'UnusedResources',
'AndroidGradlePluginVersion', 'GradleDependency', 'DiscouragedApi'
// abortOnError false
}
}
dependencies {
implementation 'org.commonmark:commonmark:0.27.1'
}
================================================
FILE: docs/404.html
================================================
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb">
<head>
<meta name="generator" content="Hugo 0.159.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>Editor</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://billthefarmer.github.io/editor/css/styles.css">
<link rel="stylesheet" href="https://billthefarmer.github.io/editor/css/custom.css">
<link href="" rel="alternate" type="application/rss+xml" title="Editor" />
<script type="text/javascript">
window.onload = function() {
let p = document.getElementById("version");
let d = new Date().getFullYear();
p.innerHTML = p.innerHTML.replace(/\d{4}/, d);
}
</script>
</head>
<body>
<style>
.not-found {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
font-size: 200%;
text-decoration: none;
color: #363636;
}
.not-found a {
display: inline-block;
}
</style>
<a href="https://billthefarmer.github.io/editor/" class="not-found">
Well, a fine little mess. Easy in, easy out. Another triumph.
</a>
</body>
</html>
================================================
FILE: docs/categories/index.xml
================================================
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Categories on Editor</title>
<link>https://billthefarmer.github.io/editor/categories/</link>
<description>Recent content in Categories on Editor</description>
<generator>Hugo</generator>
<language>en-gb</language>
<copyright>Copyright &copy; 2006 Bill Farmer</copyright>
<atom:link href="https://billthefarmer.github.io/editor/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
================================================
FILE: docs/css/custom.css
================================================
table, th, td {
border: none;
}
td {
vertical-align: top;
padding: 0;
}
section.page h1,
section.page h3 {
border: none;
padding: 0;
}
section.page h3 a,
section.page h3 a:hover,
section.page h3 a:visited {
text-decoration: none;
}
================================================
FILE: docs/css/styles.css
================================================
html, body {
font-family: "Open Sans", sans-serif;
color: #363636;
height: 100%;
}
@media (min-width: 48em) {
html {
font-size: 16px;
}
}
@media (min-width: 58em) {
html {
font-size: 20px;
}
}
@media (min-width: 48em) {
.content {
margin-left: 21rem;
margin-right: 2rem;
}
}
@media (min-width: 64em) {
.content {
margin-left: 22rem;
margin-right: 3rem;
}
}
/* Sidebar */
.sidebar {
overflow: auto;
text-align: center;
padding: 1rem 1rem;
color: white;
background-color: #363636;
display: flex;
flex-direction: column;
}
.sidebar.sidebar-default {
background-color: #363636;
}
.sidebar.sidebar-green {
background-color: #459D61;
}
.sidebar.sidebar-purple {
background-color: #77518A;
}
.sidebar.sidebar-pink {
background-color: #AD6AA9;
}
.sidebar.sidebar-red {
background-color: #B05353;
}
.sidebar.sidebar-cyan {
background-color: #5399B0;
}
.sidebar.sidebar-blue {
background-color: #5378B0;
}
.sidebar.sidebar-grey {
background-color: #959492;
}
.sidebar.sidebar-orange {
background-color: #DAA35C;
}
@media (min-width: 48em) {
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 19rem;
text-align: left;
}
}
.site-title {
margin-top: 0px;
}
.sidebar a,
.sidebar a:hover,
.sidebar a:visited {
text-decoration: none;
color: white;
}
.sidebar a:hover {
color: rgb(223, 223, 223);;
}
.sidebar ul {
margin: 0px;
padding: 0px;
}
.sidebar ul li {
list-style: none;
padding-left: 2em;
}
nav {
margin: 1em 0 1em 0;
}
.sidebar .navigation {
flex: 1 0 auto;
}
.sidebar .version {
font-size: 80%;
text-align: right;
padding: 2px;
}
.sidebar .external-title {
margin-top: 2em;
text-align: center;
font-size: 120%;
}
.sidebar nav.external {
font-size: 80%;
}
/* Blocks */
.block {
margin: 1em 0em 1em 0em;
padding: 0 5px 5px 5px;
border-top: 34px solid;
position: relative;
overflow-wrap: break-word;
}
.block:before {
position: absolute;
top: -32px;
left: 10px;
color: white;
}
.block.tip {
background: #e8f7e6;
border-top-color: #84c578;
}
.block.block.tip:before {
content: "Tip";
}
.block.note {
background: #e6f3fb;
border-top-color: #6bb1e0;
}
.block.block.note:before {
content: "Note";
}
.block.info {
background: #fefaf5;
border-top-color: #f1b37e;
}
.block.block.info:before {
content: "Info";
}
.block.warn {
background: #fbeded;
border-top-color: #d58181;
}
.block.block.warn:before {
content: "Warning";
}
/* Section of the page */
section.page {
margin-bottom: 3em;
}
section.page h1 {
border-left: 3px solid #363636;
padding-left: 0.5em;
margin-bottom: 0;
}
section.page .content {
margin-left: 0.5em;
}
section.page h1 a,
section.page h1 a:hover,
section.page h1 a:visited {
text-decoration: none;
color: #363636;
}
section.page a,
section.page a:hover,
section.page a:visited {
color: #363636;
}
section div pre {
overflow: auto;
}
section code {
background-color: #fafafa;
}
section img {
max-width: 100%;
}
table {
border-collapse: collapse;
}
table,th, td {
border: 1px solid black;
}
td{
padding: 5px;
}
================================================
FILE: docs/index.html
================================================
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb">
<head>
<meta name="generator" content="Hugo 0.159.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>Editor</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://billthefarmer.github.io/editor/css/styles.css">
<link rel="stylesheet" href="https://billthefarmer.github.io/editor/css/custom.css">
<link href="/editor/index.xml" rel="alternate" type="application/rss+xml" title="Editor" />
<script type="text/javascript">
window.onload = function() {
let p = document.getElementById("version");
let d = new Date().getFullYear();
p.innerHTML = p.innerHTML.replace(/\d{4}/, d);
}
</script>
</head>
<body>
<div class="sidebar sidebar-cyan">
<div class="navigation">
<div class="logo">
<a href="https://github.com/billthefarmer/editor" target="_blank" >
<img src="images/icon.png" style="max-width: 25%" />
</a>
<a href="https://f-droid.org/packages/org.billthefarmer.editor" target="_blank" >
<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.svg" style="max-width: 40%" />
</a>
<a href="https://github.com/billthefarmer/editor/releases" target="_blank" >
<img src="https://img.shields.io/github/v/release/billthefarmer/editor.svg?logo=github" />
</a>
</div>
<h1 class="site-title"><a href="https://billthefarmer.github.io/editor/">Editor</a></h1>
<nav class="internal">
<ul>
<li>
<a href="#introduction">Introduction</a>
<ul>
<li><a href="#features">Features</a></li>
</ul>
</li>
<li>
<a href="#using">Using</a>
<ul>
<li><a href="#toolbar">Toolbar</a></li>
<li><a href="#open">Open</a></li>
<li><a href="#open-recent">Open Recent</a></li>
<li><a href="#save-as">Save As</a></li>
<li><a href="#search">Search</a></li>
<li><a href="#findall">Findall</a></li>
<li><a href="#goto">Go to</a></li>
<li><a href="#print">Print</a></li>
<li><a href="#view-markdown">View Markdown</a></li>
<li><a href="#charset">Character set</a></li>
<li><a href="#typeface">Typeface</a></li>
<li><a href="#regular-expressions">Regular Expressions</a></li>
<li><a href="#shortcuts">Shortcuts</a></li>
<li><a href="#highlight-syntax">Highlight Syntax</a></li>
<li><a href="#mode-line">Mode Line</a></li>
<li><a href="#word-count">Word Count</a></li>
<li><a href="#extended-selection">Extended Selection</a></li>
<li><a href="#text-size">Text Size</a></li>
<li><a href="#unsaved-file">Unsaved File</a></li>
<li><a href="#changed-file">Changed File</a></li>
<li><a href="#default-file">Default File</a></li>
<li><a href="#shared-file">Shared File</a></li>
<li><a href="#keyboard-shortcuts">Keyboard Shortcuts</a></li>
</ul>
</li>
</ul>
</nav>
<nav class="external">
<div class="external-title"></div>
</nav>
</div>
<div class="version">
<p id="version">
Copyright © 2026 Bill Farmer
</p>
</div>
</div>
<div class="content">
<section class="page" id="introduction">
<h1>
<a href="#introduction">Introduction</a>
</h1>
<div class="content">
<p>Android simple generic text editor.</p>
<p><img src="images/Editor.png" alt="Editor"> <img src="images/Editor-chooser.png" alt="Chooser"></p>
<p>This is a very simple generic text editor which may be used standalone
or to show or edit any sort of text file from another app. If you
select a text file in a file manager or similar app you will be
offered the option of using this editor along with whatever other apps
you have installed that can show or edit a text file. Files will
initially be opened read only, long touch on the display or touch the
edit item in the toolbar to enable editing.</p>
</div>
</section>
<section class="page" id="features">
<h3>
<a href="#features">Features</a>
</h3>
<div class="content">
<ul>
<li>File chooser</li>
<li>Default file</li>
<li>View markdown in browser or html viewer</li>
<li>Regular expression text search</li>
<li>Character set detection and selection</li>
<li>Optional syntax highlighting</li>
<li>Open recent files from menu</li>
<li>Optionally view files</li>
<li>Optional auto save</li>
<li>Optional Word wrap</li>
<li>New file shortcut</li>
<li>Light/Dark/Black/Retro themes</li>
<li>Small/Medium/Large font size</li>
<li>Monospace/Proportional/Sans serif/Serif font faces</li>
</ul>
</div>
</section>
<section class="page" id="using">
<h1>
<a href="#using">Using</a>
</h1>
<div class="content">
<p><img src="images/Editor-landscape.png" alt="Toolbar"></p>
</div>
</section>
<section class="page" id="toolbar">
<h3>
<a href="#toolbar">Toolbar</a>
</h3>
<div class="content">
<p>There are five toolbar items which may appear:</p>
<ul>
<li><strong>Edit</strong> – Edit the current read only file</li>
<li><strong>View</strong> – View the current file read only</li>
<li><strong>Save</strong> – Save the current file if modified</li>
<li><strong>New</strong> – Start a new empty file</li>
<li><strong>Open</strong> – Open a text file using a chooser</li>
</ul>
<p>And on the menu:</p>
<ul>
<li><strong>Open recent</strong> – Pop up a list of recent files
<ul>
<li><strong>Clear list</strong> – Clear list of recent files</li>
</ul>
</li>
<li><strong>Search</strong> – Interactive search of text using a regular
expression</li>
<li><strong>Find all</strong> – Find all recent files containing search text</li>
<li><strong>Save as</strong> – Save the current file with a new name</li>
<li><strong>Go to</strong> – Scroll to selected position in file</li>
<li><strong>View markdown</strong> – View markdown in browser or html viewer</li>
<li><strong>Charset</strong> – Select character set, shows current set</li>
<li><strong>Options</strong> – Select options
<ul>
<li><strong>View files</strong> – Open files read only for viewing</li>
<li><strong>Open last</strong> – Open last opened file on startup</li>
<li><strong>Auto save</strong> – Save the current file on app pause</li>
<li><strong>Word wrap</strong> – Limit text width to screen width and word wrap</li>
<li><strong>Suggestions</strong> – Text input and spelling suggestions</li>
<li><strong>Highlight syntax</strong> – Highlight programming language syntax</li>
</ul>
</li>
<li><strong>Theme</strong> – Choose theme
<ul>
<li><strong>Light</strong></li>
<li><strong>Dark</strong></li>
<li><strong>System</strong></li>
<li><strong>White</strong></li>
<li><strong>Black</strong></li>
<li><strong>Retro</strong></li>
</ul>
</li>
<li><strong>Text size</strong> – Choose text size
<ul>
<li><strong>Small</strong></li>
<li><strong>Medium</strong></li>
<li><strong>Large</strong></li>
</ul>
</li>
<li><strong>Typeface</strong> – Choose typeface
<ul>
<li><strong>Monospace</strong></li>
<li><strong>Proportional</strong></li>
</ul>
</li>
<li><strong>About</strong> – Show version, copyright and licence</li>
</ul>
</div>
</section>
<section class="page" id="open">
<h3>
<a href="#open">Open</a>
</h3>
<div class="content">
<p>Choose a file to open from the chooser dialog that pops up. The file
will initially be read-only. Touch the Edit toolbar item to enable
editing.</p>
<p>The chooser shows a scrollable row of folder buttons and list of files
with icons. Files which appear to be media files, or are too large
will be disabled and not selectable. Touch a folder button or a folder
to change folder, or a file to open a file. Hidden files beginning
with a ‘.’ will not appear.</p>
<p>The parent folder, if it exists, will appear first in the list. Touch
that folder to move up the directory tree. If a folder is not
accessible, the chooser will show the parent folder, if it exists, and
the external storage folder (<code>/storage/emulated/0</code>).</p>
<p>Use the <strong>Storage</strong> button to open files using the android file
manager. This should ensure that files on removeable SD cards can be
saved using the <strong>Save</strong> button. The file manager may refuse to open
some types of text files not recognised by android.</p>
</div>
</section>
<section class="page" id="open-recent">
<h3>
<a href="#open-recent">Open Recent</a>
</h3>
<div class="content">
<p>Choose a file from the list that pops up. As above the file will
initially be read only. The last entry, <strong>Clear list</strong>, will clear the
list.</p>
</div>
</section>
<section class="page" id="save-as">
<h3>
<a href="#save-as">Save As</a>
</h3>
<div class="content">
<p>Enter a new file name in the dialog that pops up. Absolute names
starting with a slash ‘/’ will be saved in that exact path. Names
without a starting slash will be saved relative to the main public
folder, <code>/sdcard/</code>, or <code>/storage/emulated/0/</code>. Touch the <strong>Storage</strong>
button to use the android file manager to save the file.</p>
</div>
</section>
<section class="page" id="search">
<h3>
<a href="#search">Search</a>
</h3>
<div class="content">
<p><img src="images/Editor-search.png" alt="Search"></p>
<p>Enter search text in the field that pops up in the toolbar. The first
matching item will be highlighted. Use the search button in the
keyboard for find next. The exact regular expression syntax used is in
the android documentation for <a href="https://developer.android.com/reference/java/util/regex/Pattern#sum">Pattern</a>.</p>
</div>
</section>
<section class="page" id="findall">
<h3>
<a href="#findall">Findall</a>
</h3>
<div class="content">
<p><img src="images/Editor-findall.png" alt="FindAll"></p>
<p>You may find all recent files that contain the current search
text. This menu item will only appear while the search widget is
active. A dialog will pop up with a list of matching files. Touch an
entry to open that file. You may repeat this or refine the search text
to find the desired file.</p>
</div>
</section>
<section class="page" id="goto">
<h3>
<a href="#goto">Go to</a>
</h3>
<div class="content">
<p><img src="images/Editor-goto.png" alt="Go to"></p>
<p>Select position in the current file on the horizontal seek bar in the
dialog which will pop up.</p>
</div>
</section>
<section class="page" id="print">
<h3>
<a href="#print">Print</a>
</h3>
<div class="content">
<p><img src="images/Editor-print.png" alt="Print"></p>
<p>Print the current file. If you would like the output highlighted, you
will need to scroll slowly through the whole file to give the app a
chance to highlight it. <strong>Caution</strong> – Attempting to print a
large file on an older device with limited resources may cause the app
to stop responding.</p>
</div>
</section>
<section class="page" id="view-markdown">
<h3>
<a href="#view-markdown">View Markdown</a>
</h3>
<div class="content">
<p>You will be prompted to choose a viewer for an html file containing
the encoded markdown from the current open file. If the text contains
no markdown the result will be the same text.</p>
</div>
</section>
<section class="page" id="charset">
<h3>
<a href="#charset">Character set</a>
</h3>
<div class="content">
<p><img src="images/Editor-charset.png" alt="Charset"></p>
<p>The current character set is displayed under the current file name. The character set is detected when a new file is read. It may be changed by selecting the Charset item in the menu, which shows the current character set.</p>
<h4 id="default">Default</h4>
<p>The default character set is set to UTF-8 on selecting New from the toolbar. It may be changed in the menu. Android defaults to UTF-8, don’t use anything else unless you are sure what you are doing.</p>
<h4 id="detection">Detection</h4>
<p>The current character set is detected on reading a file by the detection code from International Components for Unicode. If there are no accented characters or symbols in the text to give the detection algorithm something to work on it may not get it right.</p>
<h4 id="saving">Saving</h4>
<p>Files will be saved using the current character set. To change it, use the Charset item in the menu, which shows the current set.</p>
<p>Caution – If you add accented characters or symbols to the text, make sure to check the current character set before you save it.</p>
<h4 id="use-mode-line">Use mode line</h4>
<p>The character set may be set to UTF-8 by using a mode line in the text.</p>
<pre tabindex="0"><code># ed: cs:u
</code></pre><p>See <a href="#mode-line">Mode Line</a></p>
</div>
</section>
<section class="page" id="typeface">
<h3>
<a href="#typeface">Typeface</a>
</h3>
<div class="content">
<p><img src="images/Editor-typeface.png" alt="Typeface"></p>
<p>The <strong>Typeface</strong> menu item shows a choice of common typefaces. These
are aliases for the fonts commonly provided on android devices. Some
of them resolve to the same font, depending on the device.</p>
</div>
</section>
<section class="page" id="regular-expressions">
<h3>
<a href="#regular-expressions">Regular Expressions</a>
</h3>
<div class="content">
<p>Explaining <a href="https://en.wikipedia.org/wiki/Regular_expression">regular expressions</a> used in the text search is beyond
the scope of these docs. There is at least one <a href="https://www.oreilly.com/library/view/mastering-regular-expressions/0596528124/">book</a> (of many)
devoted to the subject. Use <code>(?i)</code> for case insensitive search, <code>.</code>
matches any character once, <code>.?</code> matches any character once or not at
all, <code>.+</code> matches any character one or more times, <code>.*</code> matches any
character any times or not at all. Use <code>.+?</code> or <code>.*?</code> for reluctant
versions. Use <code>\b</code> for a word boundary, <code>\d</code> for a digit, <code>\s</code> for a
white space character, <code>\w</code> for a word character, so <code>\w+</code> matches
words. Use <code>[abc]</code> to match a set of characters, or <code>[a-z]</code> for a
range, so <code>\w*[aeiou]+\w*</code> should match any word with at least one
vowel in it.</p>
</div>
</section>
<section class="page" id="shortcuts">
<h3>
<a href="#shortcuts">Shortcuts</a>
</h3>
<div class="content">
<p><img src="images/Editor-widgets.png" alt="Shortcut"> <img src="images/Editor-shortcut.png" alt="Shortcut"></p>
<p><img src="images/Editor-open.png" alt="Shortcut"> <img src="images/Editor-name.png" alt="Shortcut"></p>
<p>You may create a <strong>New file</strong> or an <strong>Open file</strong> shortcut in the
launcher. The <strong>New file</strong> widget will create an shortcut to open a
new file in Editor. The <strong>Open file</strong> widget will pop up a dialog
showing the file chooser. You may choose a file or use the <strong>Storage</strong>
button. You may cancel and fill in the name and path fields, or edit
the name or path fields after choosing a file. Use the <strong>Create</strong>
button to create the shortcut. <strong>Note</strong> – content URIs returned
by the android file picker will not be resolved.</p>
</div>
</section>
<section class="page" id="highlight-syntax">
<h3>
<a href="#highlight-syntax">Highlight Syntax</a>
</h3>
<div class="content">
<p><img src="images/Editor-syntax.png" alt="Syntax"></p>
<p>If the current open file is a C, C++, Objective C, Dart, Go, Java,
Javascript, Python, Rust, Shell script, Swift, CSS, HTML, <a href="https://orgmode.org" title="https://orgmode.org">Emacs
Org</a> or Markdown file, the keywords, classes comments, strings, etc
will be highlighted.</p>
<h3 id="selection">Selection</h3>
<p>The type of highlighting is selected by file extension. Files with
<code>.c</code>, <code>.cc</code>, <code>.c++</code>, <code>.cxx</code>, <code>.m</code>, <code>.h</code>, <code>.dart</code>, <code>.go</code>, <code>.js</code>,
<code>.java</code>, <code>.py</code>, <code>.rs</code>, <code>.sh</code>, <code>.swift</code> extensions will be highlighted
with ‘C’ style highlighting. Files with <code>.htm</code>, <code>.html</code> extensions
will be highlighted as HTML. Files with <code>.cs</code>, <code>.css</code> extensions will
be highlighted as CSS. Files with <code>.md</code> extensions will be highlighted
as markdown. Files with <code>.org</code> extensions will be highlighted as Emacs
Org.</p>
<h3 id="parsing">Parsing</h3>
<p>The algorithm makes no attempt at parsing. The text is scanned for
relevent keywords, classes, constants, strings and comments and
highlighted accordingly. Therefore it will not be exactly correct, but
good enough for a simple text editor. See <a href="https://billthefarmer.github.io/blog/post/source-code-highlighting" title="https://billthefarmer.github.io/blog/post/source-code-highlighting">Source Code Syntax
Highlighting</a>.</p>
<h4 id="c-type">C type</h4>
<p>Keywords and types are matched from lists of C/C++/Objective
C/Go/Java/Javascript/Python/Shell/Swift keywords and types. Classes
are capitalised words. Constants are all caps words. Strings are in
double quotes. Single quotes are ignored because apostrophes break the
algorithm. Both <code>/* */</code> and <code>// </code> C style comments and <code># </code> Shell
script style comments are recognised.</p>
<h4 id="html">HTML</h4>
<p>HTML keywords are matched from a list. Double quoted arguments are
highlighted. As above, single quotes are ignored. HTML comments <code><!-- --></code> are recognised.</p>
<h4 id="css">CSS</h4>
<p>CSS style names are matched from a list. Double quoted arguments are
highlighted. As above, single quotes are ignored. C style comments are
recognised.</p>
<h4 id="markdown">Markdown</h4>
<p>Markdown headers, links, emphasis and code will be highlighted.</p>
<h4 id="emacs-org">Emacs Org</h4>
<p>Metadata, headers, links, emphasis and inline code will be highlighted.</p>
<h4 id="default">Default</h4>
<p>Files with unrecognised extensions which are not plain text files will
be highlighted with default highlighting, similar to C type
highlighting. Comments will not be highlighted as there is little
consistency with comment delimiters outside C type languages.</p>
<p><strong>Caution</strong> Files with strings of symbols may defeat the
regex processing and cause the app to stop responding.</p>
<h4 id="limitations">Limitations</h4>
<p>Because scanning and highlighting a large file can be quite slow,
making the app unresponsive, only the text currently in view is
scanned and highlighted. Therefore as the text is edited or scrolled,
the new region in view will be scanned and highlighted after a short
delay to allow for user typing without the highlighting running
constantly.</p>
<h4 id="scrolling">Scrolling</h4>
<p>After the text is highlighted, the android view system will re-layout
the views whether they need it or not. That causes the current cursor
position to be scrolled back into view, which can be extremely
annoying. So the cursor is moved if necessary to keep it within the
visible region.</p>
<h4 id="horizontal-scrolling">Horizontal scrolling</h4>
<p>On devices running android versions less than Marshmallow M (6),
horizontal scrolling will scroll back again. Make the text size
smaller or rotate the device to avoid this. Or turn the highlighting
off.</p>
</div>
</section>
<section class="page" id="mode-line">
<h3>
<a href="#mode-line">Mode Line</a>
</h3>
<div class="content">
<p>If a line of text is found within the first or last two or three lines
of the file which matches the mode line pattern, the mode of the
editor will be changed after the file is loaded. The pattern is one
or more text or punctuation characters, white space, the text <code>ed:</code>
followed by one or more option patterns separated by white space.</p>
<pre><code># ed: [[no]vw] [[no]ww] [[no]sg] [[no]hs] [cs:u] [th:l|d|s|w|b|r] [ts:l|m|s] [tf:m|p|s]
</code></pre>
<p>The initial text or punctuation characters are intended to be used to
hide the mode line from compilers and interpreters by commenting it
out.</p>
<p>The option patterns are:</p>
<ul>
<li><strong>[no]vw</strong> – View files read only</li>
<li><strong>[no]ww</strong> – Word wrap</li>
<li><strong>[no]sg</strong> – Suggestions</li>
<li><strong>[no]hs</strong> – Syntax highlighting</li>
<li><strong>cs:u</strong> – Character set – UTF-8</li>
<li><strong>th:l|d|s|w|b|r</strong> – Theme – light, dark, system,
white, black or retro</li>
<li><strong>ts:l|m|s</strong> – Text size – large, medium or small</li>
<li><strong>tf:m|p|s</strong> – Typeface – monospace, proportional
(sans) or serif</li>
</ul>
<p>The mode line is read after the file is loaded and will change
immediately, except in Android 6, Marshmallow due to an obscure
bug. Rotate the device to change mode.</p>
</div>
</section>
<section class="page" id="word-count">
<h3>
<a href="#word-count">Word Count</a>
</h3>
<div class="content">
<p>The file word count and character count are shown in the toolbar. Due
to the algorithm used, the result may differ from that produced by
other utilities.</p>
</div>
</section>
<section class="page" id="extended-selection">
<h3>
<a href="#extended-selection">Extended Selection</a>
</h3>
<div class="content">
<p>If the file being edited is not a plain text file, selections created
by double tapping or long touching on the text will be extended to
enclosing delimiters (brackets, quotes) on the same text line.</p>
</div>
</section>
<section class="page" id="text-size">
<h3>
<a href="#text-size">Text Size</a>
</h3>
<div class="content">
<p>Text size may be changed from the menu or by pinch or expand gestures on the text or by doubletap and swipe. The response to gestures on large files may be slow or delayed.</p>
</div>
</section>
<section class="page" id="unsaved-file">
<h3>
<a href="#unsaved-file">Unsaved File</a>
</h3>
<div class="content">
<p>If you touch the new, back or open button, and the current file has
been modified, you will be prompted whether you want to save it, else
the editor will just exit or open a file chooser. The current file may
be saved on app pause using the menu option. The scroll position and
name will be remembered for the last 10 files opened.</p>
</div>
</section>
<section class="page" id="changed-file">
<h3>
<a href="#changed-file">Changed File</a>
</h3>
<div class="content">
<p>If a file has changed in storage while it was open in the editor, if
you attempt to save it, or the app is resumed, you will be prompted
whether to overwrite or reload the file.</p>
</div>
</section>
<section class="page" id="default-file">
<h3>
<a href="#default-file">Default File</a>
</h3>
<div class="content">
<p>If there is no open file any text entered will by default be saved in
<code>Documents/Editor.txt</code>. This file will be loaded on start if it
exists. Use the <strong>Save as</strong> menu item to save it elsewhere.</p>
</div>
</section>
<section class="page" id="shared-file">
<h3>
<a href="#shared-file">Shared File</a>
</h3>
<div class="content">
<p>Text files opened or shared by another app may be viewed and
edited. Some apps may share files or text using a <code>content</code> URI that
is not resolvable to a path to a file in storage. In that case the
editor will read the file into a new file. The <strong>Save</strong> item will save
the file in the original location if possible.</p>
<p><strong>Note</strong> – Apps that share files will usually only give another
app read permission. Use the <strong>Save as</strong> menu item to save the file
elsewhere.</p>
</div>
</section>
<section class="page" id="keyboard-shortcuts">
<h3>
<a href="#keyboard-shortcuts">Keyboard Shortcuts</a>
</h3>
<div class="content">
<p>When using an external keyboard, some keyboard shortcuts are
implemented:</p>
<ul>
<li>Ctrl+E – Edit mode</li>
<li>Ctrl+Shift+E – View mode</li>
<li>Ctrl+F – Search</li>
<li>Ctrl+Shift+F – Close search</li>
<li>Ctrl+Alt+F – Find next</li>
<li>Ctrl+G – Go to</li>
<li>Ctrl+M – Show menu</li>
<li>Ctrl+N – New file</li>
<li>Ctrl+O – Open file</li>
<li>Ctrl+S – Save file</li>
<li>Ctrl+Shift+S – Save as</li>
<li>Ctrl++ – Increase text size</li>
<li>Ctrl+- – Decrease text size</li>
<li>F3 – Find next</li>
<li>F10 – Show menu</li>
</ul>
<p>Many other shortcuts – Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z
are already build in to android.</p>
</div>
</section>
</div>
</body>
</html>
================================================
FILE: docs/index.xml
================================================
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Editor</title>
<link>https://billthefarmer.github.io/editor/</link>
<description>Recent content on Editor</description>
<generator>Hugo</generator>
<language>en-gb</language>
<copyright>Copyright &copy; 2006 Bill Farmer</copyright>
<lastBuildDate>Sun, 18 Feb 2024 10:54:01 +0000</lastBuildDate>
<atom:link href="https://billthefarmer.github.io/editor/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Features</title>
<link>https://billthefarmer.github.io/editor/introduction/features/</link>
<pubDate>Wed, 04 Mar 2020 15:40:25 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/introduction/features/</guid>
<description><ul>
<li>File chooser</li>
<li>Default file</li>
<li>View markdown in browser or html viewer</li>
<li>Regular expression text search</li>
<li>Character set detection and selection</li>
<li>Optional syntax highlighting</li>
<li>Open recent files from menu</li>
<li>Optionally view files</li>
<li>Optional auto save</li>
<li>Optional Word wrap</li>
<li>New file shortcut</li>
<li>Light/Dark/Black/Retro themes</li>
<li>Small/Medium/Large font size</li>
<li>Monospace/Proportional/Sans serif/Serif font faces</li>
</ul></description>
</item>
<item>
<title>Toolbar</title>
<link>https://billthefarmer.github.io/editor/using/toolbar/</link>
<pubDate>Wed, 04 Mar 2020 16:06:10 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/toolbar/</guid>
<description><p>There are five toolbar items which may appear:</p>
<ul>
<li><strong>Edit</strong> – Edit the current read only file</li>
<li><strong>View</strong> – View the current file read only</li>
<li><strong>Save</strong> – Save the current file if modified</li>
<li><strong>New</strong> – Start a new empty file</li>
<li><strong>Open</strong> – Open a text file using a chooser</li>
</ul>
<p>And on the menu:</p>
<ul>
<li><strong>Open recent</strong> – Pop up a list of recent files
<ul>
<li><strong>Clear list</strong> – Clear list of recent files</li>
</ul>
</li>
<li><strong>Search</strong> – Interactive search of text using a regular
expression</li>
<li><strong>Find all</strong> – Find all recent files containing search text</li>
<li><strong>Save as</strong> – Save the current file with a new name</li>
<li><strong>Go to</strong> – Scroll to selected position in file</li>
<li><strong>View markdown</strong> – View markdown in browser or html viewer</li>
<li><strong>Charset</strong> – Select character set, shows current set</li>
<li><strong>Options</strong> – Select options
<ul>
<li><strong>View files</strong> – Open files read only for viewing</li>
<li><strong>Open last</strong> – Open last opened file on startup</li>
<li><strong>Auto save</strong> – Save the current file on app pause</li>
<li><strong>Word wrap</strong> – Limit text width to screen width and word wrap</li>
<li><strong>Suggestions</strong> – Text input and spelling suggestions</li>
<li><strong>Highlight syntax</strong> – Highlight programming language syntax</li>
</ul>
</li>
<li><strong>Theme</strong> – Choose theme
<ul>
<li><strong>Light</strong></li>
<li><strong>Dark</strong></li>
<li><strong>System</strong></li>
<li><strong>White</strong></li>
<li><strong>Black</strong></li>
<li><strong>Retro</strong></li>
</ul>
</li>
<li><strong>Text size</strong> – Choose text size
<ul>
<li><strong>Small</strong></li>
<li><strong>Medium</strong></li>
<li><strong>Large</strong></li>
</ul>
</li>
<li><strong>Typeface</strong> – Choose typeface
<ul>
<li><strong>Monospace</strong></li>
<li><strong>Proportional</strong></li>
</ul>
</li>
<li><strong>About</strong> – Show version, copyright and licence</li>
</ul></description>
</item>
<item>
<title>Open</title>
<link>https://billthefarmer.github.io/editor/using/open/</link>
<pubDate>Wed, 04 Mar 2020 19:32:49 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/open/</guid>
<description><p>Choose a file to open from the chooser dialog that pops up. The file
will initially be read-only. Touch the Edit toolbar item to enable
editing.</p>
<p>The chooser shows a scrollable row of folder buttons and list of files
with icons. Files which appear to be media files, or are too large
will be disabled and not selectable. Touch a folder button or a folder
to change folder, or a file to open a file. Hidden files beginning
with a &lsquo;.&rsquo; will not appear.</p></description>
</item>
<item>
<title>Open Recent</title>
<link>https://billthefarmer.github.io/editor/using/open-recent/</link>
<pubDate>Wed, 04 Mar 2020 19:32:37 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/open-recent/</guid>
<description><p>Choose a file from the list that pops up. As above the file will
initially be read only. The last entry, <strong>Clear list</strong>, will clear the
list.</p></description>
</item>
<item>
<title>Save As</title>
<link>https://billthefarmer.github.io/editor/using/save-as/</link>
<pubDate>Wed, 04 Mar 2020 19:33:09 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/save-as/</guid>
<description><p>Enter a new file name in the dialog that pops up. Absolute names
starting with a slash &lsquo;/&rsquo; will be saved in that exact path. Names
without a starting slash will be saved relative to the main public
folder, <code>/sdcard/</code>, or <code>/storage/emulated/0/</code>. Touch the <strong>Storage</strong>
button to use the android file manager to save the file.</p></description>
</item>
<item>
<title>Search</title>
<link>https://billthefarmer.github.io/editor/using/search/</link>
<pubDate>Wed, 04 Mar 2020 19:38:08 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/search/</guid>
<description><p><img src="images/Editor-search.png" alt="Search"></p>
<p>Enter search text in the field that pops up in the toolbar. The first
matching item will be highlighted. Use the search button in the
keyboard for find next. The exact regular expression syntax used is in
the android documentation for <a href="https://developer.android.com/reference/java/util/regex/Pattern#sum">Pattern</a>.</p></description>
</item>
<item>
<title>Findall</title>
<link>https://billthefarmer.github.io/editor/using/findall/</link>
<pubDate>Thu, 26 Mar 2020 09:56:27 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/findall/</guid>
<description><p><img src="images/Editor-findall.png" alt="FindAll"></p>
<p>You may find all recent files that contain the current search
text. This menu item will only appear while the search widget is
active. A dialog will pop up with a list of matching files. Touch an
entry to open that file. You may repeat this or refine the search text
to find the desired file.</p></description>
</item>
<item>
<title>Go to</title>
<link>https://billthefarmer.github.io/editor/using/goto/</link>
<pubDate>Thu, 17 Nov 2022 09:49:16 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/goto/</guid>
<description><p><img src="images/Editor-goto.png" alt="Go to"></p>
<p>Select position in the current file on the horizontal seek bar in the
dialog which will pop up.</p></description>
</item>
<item>
<title>Print</title>
<link>https://billthefarmer.github.io/editor/using/print/</link>
<pubDate>Sat, 26 Nov 2022 09:54:15 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/print/</guid>
<description><p><img src="images/Editor-print.png" alt="Print"></p>
<p>Print the current file. If you would like the output highlighted, you
will need to scroll slowly through the whole file to give the app a
chance to highlight it. <strong>Caution</strong> – Attempting to print a
large file on an older device with limited resources may cause the app
to stop responding.</p></description>
</item>
<item>
<title>View Markdown</title>
<link>https://billthefarmer.github.io/editor/using/view-markdown/</link>
<pubDate>Wed, 04 Mar 2020 19:40:02 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/view-markdown/</guid>
<description><p>You will be prompted to choose a viewer for an html file containing
the encoded markdown from the current open file. If the text contains
no markdown the result will be the same text.</p></description>
</item>
<item>
<title>Character set</title>
<link>https://billthefarmer.github.io/editor/using/charset/</link>
<pubDate>Wed, 03 Nov 2021 21:12:12 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/charset/</guid>
<description><p><img src="images/Editor-charset.png" alt="Charset"></p>
<p>The current character set is displayed under the current file name. The character set is detected when a new file is read. It may be changed by selecting the Charset item in the menu, which shows the current character set.</p>
<h4 id="default">Default</h4>
<p>The default character set is set to UTF-8 on selecting New from the toolbar. It may be changed in the menu. Android defaults to UTF-8, don&rsquo;t use anything else unless you are sure what you are doing.</p></description>
</item>
<item>
<title>Typeface</title>
<link>https://billthefarmer.github.io/editor/using/typeface/</link>
<pubDate>Sun, 18 Feb 2024 10:54:01 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/typeface/</guid>
<description><p><img src="images/Editor-typeface.png" alt="Typeface"></p>
<p>The <strong>Typeface</strong> menu item shows a choice of common typefaces. These
are aliases for the fonts commonly provided on android devices. Some
of them resolve to the same font, depending on the device.</p></description>
</item>
<item>
<title>Regular Expressions</title>
<link>https://billthefarmer.github.io/editor/using/regular-expressions/</link>
<pubDate>Sun, 05 Sep 2021 09:48:08 +0100</pubDate>
<guid>https://billthefarmer.github.io/editor/using/regular-expressions/</guid>
<description><p>Explaining <a href="https://en.wikipedia.org/wiki/Regular_expression">regular expressions</a> used in the text search is beyond
the scope of these docs. There is at least one <a href="https://www.oreilly.com/library/view/mastering-regular-expressions/0596528124/">book</a> (of many)
devoted to the subject. Use <code>(?i)</code> for case insensitive search, <code>.</code>
matches any character once, <code>.?</code> matches any character once or not at
all, <code>.+</code> matches any character one or more times, <code>.*</code> matches any
character any times or not at all. Use <code>.+?</code> or <code>.*?</code> for reluctant
versions. Use <code>\b</code> for a word boundary, <code>\d</code> for a digit, <code>\s</code> for a
white space character, <code>\w</code> for a word character, so <code>\w+</code> matches
words. Use <code>[abc]</code> to match a set of characters, or <code>[a-z]</code> for a
range, so <code>\w*[aeiou]+\w*</code> should match any word with at least one
vowel in it.</p></description>
</item>
<item>
<title>Shortcuts</title>
<link>https://billthefarmer.github.io/editor/using/shortcut/</link>
<pubDate>Wed, 02 Mar 2022 09:34:09 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/shortcut/</guid>
<description><p><img src="images/Editor-widgets.png" alt="Shortcut"> <img src="images/Editor-shortcut.png" alt="Shortcut"></p>
<p><img src="images/Editor-open.png" alt="Shortcut"> <img src="images/Editor-name.png" alt="Shortcut"></p>
<p>You may create a <strong>New file</strong> or an <strong>Open file</strong> shortcut in the
launcher. The <strong>New file</strong> widget will create an shortcut to open a
new file in Editor. The <strong>Open file</strong> widget will pop up a dialog
showing the file chooser. You may choose a file or use the <strong>Storage</strong>
button. You may cancel and fill in the name and path fields, or edit
the name or path fields after choosing a file. Use the <strong>Create</strong>
button to create the shortcut. <strong>Note</strong> – content URIs returned
by the android file picker will not be resolved.</p></description>
</item>
<item>
<title>Highlight Syntax</title>
<link>https://billthefarmer.github.io/editor/using/highlight-syntax/</link>
<pubDate>Wed, 04 Mar 2020 19:41:14 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/highlight-syntax/</guid>
<description><p><img src="images/Editor-syntax.png" alt="Syntax"></p>
<p>If the current open file is a C, C++, Objective C, Dart, Go, Java,
Javascript, Python, Rust, Shell script, Swift, CSS, HTML, <a href="https://orgmode.org" title="https://orgmode.org">Emacs
Org</a> or Markdown file, the keywords, classes comments, strings, etc
will be highlighted.</p>
<h3 id="selection">Selection</h3>
<p>The type of highlighting is selected by file extension. Files with
<code>.c</code>, <code>.cc</code>, <code>.c++</code>, <code>.cxx</code>, <code>.m</code>, <code>.h</code>, <code>.dart</code>, <code>.go</code>, <code>.js</code>,
<code>.java</code>, <code>.py</code>, <code>.rs</code>, <code>.sh</code>, <code>.swift</code> extensions will be highlighted
with &lsquo;C&rsquo; style highlighting. Files with <code>.htm</code>, <code>.html</code> extensions
will be highlighted as HTML. Files with <code>.cs</code>, <code>.css</code> extensions will
be highlighted as CSS. Files with <code>.md</code> extensions will be highlighted
as markdown. Files with <code>.org</code> extensions will be highlighted as Emacs
Org.</p></description>
</item>
<item>
<title>Mode Line</title>
<link>https://billthefarmer.github.io/editor/using/mode-line/</link>
<pubDate>Wed, 04 Mar 2020 17:41:40 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/mode-line/</guid>
<description><p>If a line of text is found within the first or last two or three lines
of the file which matches the mode line pattern, the mode of the
editor will be changed after the file is loaded. The pattern is one
or more text or punctuation characters, white space, the text <code>ed:</code>
followed by one or more option patterns separated by white space.</p>
<pre><code># ed: [[no]vw] [[no]ww] [[no]sg] [[no]hs] [cs:u] [th:l|d|s|w|b|r] [ts:l|m|s] [tf:m|p|s]
</code></pre>
<p>The initial text or punctuation characters are intended to be used to
hide the mode line from compilers and interpreters by commenting it
out.</p></description>
</item>
<item>
<title>Word Count</title>
<link>https://billthefarmer.github.io/editor/using/word-count/</link>
<pubDate>Mon, 29 Mar 2021 18:47:58 +0100</pubDate>
<guid>https://billthefarmer.github.io/editor/using/word-count/</guid>
<description><p>The file word count and character count are shown in the toolbar. Due
to the algorithm used, the result may differ from that produced by
other utilities.</p></description>
</item>
<item>
<title>Extended Selection</title>
<link>https://billthefarmer.github.io/editor/using/extended-selection/</link>
<pubDate>Wed, 04 Mar 2020 17:42:02 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/extended-selection/</guid>
<description><p>If the file being edited is not a plain text file, selections created
by double tapping or long touching on the text will be extended to
enclosing delimiters (brackets, quotes) on the same text line.</p></description>
</item>
<item>
<title>Text Size</title>
<link>https://billthefarmer.github.io/editor/using/text-size/</link>
<pubDate>Fri, 16 Jul 2021 09:14:58 +0100</pubDate>
<guid>https://billthefarmer.github.io/editor/using/text-size/</guid>
<description><p>Text size may be changed from the menu or by pinch or expand gestures on the text or by doubletap and swipe. The response to gestures on large files may be slow or delayed.</p></description>
</item>
<item>
<title>Unsaved File</title>
<link>https://billthefarmer.github.io/editor/using/unsaved-file/</link>
<pubDate>Wed, 04 Mar 2020 17:42:32 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/unsaved-file/</guid>
<description><p>If you touch the new, back or open button, and the current file has
been modified, you will be prompted whether you want to save it, else
the editor will just exit or open a file chooser. The current file may
be saved on app pause using the menu option. The scroll position and
name will be remembered for the last 10 files opened.</p></description>
</item>
<item>
<title>Changed File</title>
<link>https://billthefarmer.github.io/editor/using/changed-file/</link>
<pubDate>Wed, 04 Mar 2020 17:42:49 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/changed-file/</guid>
<description><p>If a file has changed in storage while it was open in the editor, if
you attempt to save it, or the app is resumed, you will be prompted
whether to overwrite or reload the file.</p></description>
</item>
<item>
<title>Default File</title>
<link>https://billthefarmer.github.io/editor/using/default-file/</link>
<pubDate>Wed, 04 Mar 2020 17:43:09 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/default-file/</guid>
<description><p>If there is no open file any text entered will by default be saved in
<code>Documents/Editor.txt</code>. This file will be loaded on start if it
exists. Use the <strong>Save as</strong> menu item to save it elsewhere.</p></description>
</item>
<item>
<title>Shared File</title>
<link>https://billthefarmer.github.io/editor/using/shared-file/</link>
<pubDate>Wed, 04 Mar 2020 17:43:39 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/shared-file/</guid>
<description><p>Text files opened or shared by another app may be viewed and
edited. Some apps may share files or text using a <code>content</code> URI that
is not resolvable to a path to a file in storage. In that case the
editor will read the file into a new file. The <strong>Save</strong> item will save
the file in the original location if possible.</p>
<p><strong>Note</strong> – Apps that share files will usually only give another
app read permission. Use the <strong>Save as</strong> menu item to save the file
elsewhere.</p></description>
</item>
<item>
<title>Keyboard Shortcuts</title>
<link>https://billthefarmer.github.io/editor/using/keyboard-shortcuts/</link>
<pubDate>Wed, 21 Jul 2021 19:22:29 +0100</pubDate>
<guid>https://billthefarmer.github.io/editor/using/keyboard-shortcuts/</guid>
<description><p>When using an external keyboard, some keyboard shortcuts are
implemented:</p>
<ul>
<li>Ctrl+E – Edit mode</li>
<li>Ctrl+Shift+E – View mode</li>
<li>Ctrl+F – Search</li>
<li>Ctrl+Shift+F – Close search</li>
<li>Ctrl+Alt+F – Find next</li>
<li>Ctrl+G – Go to</li>
<li>Ctrl+M – Show menu</li>
<li>Ctrl+N – New file</li>
<li>Ctrl+O – Open file</li>
<li>Ctrl+S – Save file</li>
<li>Ctrl+Shift+S – Save as</li>
<li>Ctrl++ – Increase text size</li>
<li>Ctrl+- – Decrease text size</li>
<li>F3 – Find next</li>
<li>F10 – Show menu</li>
</ul>
<p>Many other shortcuts – Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z
are already build in to android.</p></description>
</item>
</channel>
</rss>
================================================
FILE: docs/introduction/index.xml
================================================
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Introduction on Editor</title>
<link>https://billthefarmer.github.io/editor/introduction/</link>
<description>Recent content in Introduction on Editor</description>
<generator>Hugo</generator>
<language>en-gb</language>
<copyright>Copyright &copy; 2006 Bill Farmer</copyright>
<lastBuildDate>Wed, 04 Mar 2020 15:40:25 +0000</lastBuildDate>
<atom:link href="https://billthefarmer.github.io/editor/introduction/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Features</title>
<link>https://billthefarmer.github.io/editor/introduction/features/</link>
<pubDate>Wed, 04 Mar 2020 15:40:25 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/introduction/features/</guid>
<description><ul>
<li>File chooser</li>
<li>Default file</li>
<li>View markdown in browser or html viewer</li>
<li>Regular expression text search</li>
<li>Character set detection and selection</li>
<li>Optional syntax highlighting</li>
<li>Open recent files from menu</li>
<li>Optionally view files</li>
<li>Optional auto save</li>
<li>Optional Word wrap</li>
<li>New file shortcut</li>
<li>Light/Dark/Black/Retro themes</li>
<li>Small/Medium/Large font size</li>
<li>Monospace/Proportional/Sans serif/Serif font faces</li>
</ul></description>
</item>
</channel>
</rss>
================================================
FILE: docs/sitemap.xml
================================================
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://billthefarmer.github.io/editor/introduction/</loc>
<lastmod>2020-03-04T15:38:25+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/introduction/features/</loc>
<lastmod>2020-03-04T15:40:25+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/</loc>
<lastmod>2020-03-04T16:05:59+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/toolbar/</loc>
<lastmod>2020-03-04T16:06:10+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/open/</loc>
<lastmod>2020-03-04T19:32:49+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/open-recent/</loc>
<lastmod>2020-03-04T19:32:37+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/save-as/</loc>
<lastmod>2020-03-04T19:33:09+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/search/</loc>
<lastmod>2020-03-04T19:38:08+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/findall/</loc>
<lastmod>2020-03-26T09:56:27+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/goto/</loc>
<lastmod>2022-11-17T09:49:16+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/print/</loc>
<lastmod>2022-11-26T09:54:15+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/view-markdown/</loc>
<lastmod>2020-03-04T19:40:02+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/charset/</loc>
<lastmod>2021-11-03T21:12:12+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/typeface/</loc>
<lastmod>2024-02-18T10:54:01+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/regular-expressions/</loc>
<lastmod>2021-09-05T09:48:08+01:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/shortcut/</loc>
<lastmod>2022-03-02T09:34:09+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/highlight-syntax/</loc>
<lastmod>2020-03-04T19:41:14+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/mode-line/</loc>
<lastmod>2020-03-04T17:41:40+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/word-count/</loc>
<lastmod>2021-03-29T18:47:58+01:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/extended-selection/</loc>
<lastmod>2020-03-04T17:42:02+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/text-size/</loc>
<lastmod>2021-07-16T09:14:58+01:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/unsaved-file/</loc>
<lastmod>2020-03-04T17:42:32+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/changed-file/</loc>
<lastmod>2020-03-04T17:42:49+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/default-file/</loc>
<lastmod>2020-03-04T17:43:09+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/shared-file/</loc>
<lastmod>2020-03-04T17:43:39+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/using/keyboard-shortcuts/</loc>
<lastmod>2021-07-21T19:22:29+01:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/</loc>
<lastmod>2024-02-18T10:54:01+00:00</lastmod>
</url><url>
<loc>https://billthefarmer.github.io/editor/categories/</loc>
</url><url>
<loc>https://billthefarmer.github.io/editor/tags/</loc>
</url>
</urlset>
================================================
FILE: docs/tags/index.xml
================================================
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tags on Editor</title>
<link>https://billthefarmer.github.io/editor/tags/</link>
<description>Recent content in Tags on Editor</description>
<generator>Hugo</generator>
<language>en-gb</language>
<copyright>Copyright &copy; 2006 Bill Farmer</copyright>
<atom:link href="https://billthefarmer.github.io/editor/tags/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
================================================
FILE: docs/using/index.xml
================================================
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Using on Editor</title>
<link>https://billthefarmer.github.io/editor/using/</link>
<description>Recent content in Using on Editor</description>
<generator>Hugo</generator>
<language>en-gb</language>
<copyright>Copyright &copy; 2006 Bill Farmer</copyright>
<lastBuildDate>Sun, 18 Feb 2024 10:54:01 +0000</lastBuildDate>
<atom:link href="https://billthefarmer.github.io/editor/using/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Toolbar</title>
<link>https://billthefarmer.github.io/editor/using/toolbar/</link>
<pubDate>Wed, 04 Mar 2020 16:06:10 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/toolbar/</guid>
<description><p>There are five toolbar items which may appear:</p>
<ul>
<li><strong>Edit</strong> – Edit the current read only file</li>
<li><strong>View</strong> – View the current file read only</li>
<li><strong>Save</strong> – Save the current file if modified</li>
<li><strong>New</strong> – Start a new empty file</li>
<li><strong>Open</strong> – Open a text file using a chooser</li>
</ul>
<p>And on the menu:</p>
<ul>
<li><strong>Open recent</strong> – Pop up a list of recent files
<ul>
<li><strong>Clear list</strong> – Clear list of recent files</li>
</ul>
</li>
<li><strong>Search</strong> – Interactive search of text using a regular
expression</li>
<li><strong>Find all</strong> – Find all recent files containing search text</li>
<li><strong>Save as</strong> – Save the current file with a new name</li>
<li><strong>Go to</strong> – Scroll to selected position in file</li>
<li><strong>View markdown</strong> – View markdown in browser or html viewer</li>
<li><strong>Charset</strong> – Select character set, shows current set</li>
<li><strong>Options</strong> – Select options
<ul>
<li><strong>View files</strong> – Open files read only for viewing</li>
<li><strong>Open last</strong> – Open last opened file on startup</li>
<li><strong>Auto save</strong> – Save the current file on app pause</li>
<li><strong>Word wrap</strong> – Limit text width to screen width and word wrap</li>
<li><strong>Suggestions</strong> – Text input and spelling suggestions</li>
<li><strong>Highlight syntax</strong> – Highlight programming language syntax</li>
</ul>
</li>
<li><strong>Theme</strong> – Choose theme
<ul>
<li><strong>Light</strong></li>
<li><strong>Dark</strong></li>
<li><strong>System</strong></li>
<li><strong>White</strong></li>
<li><strong>Black</strong></li>
<li><strong>Retro</strong></li>
</ul>
</li>
<li><strong>Text size</strong> – Choose text size
<ul>
<li><strong>Small</strong></li>
<li><strong>Medium</strong></li>
<li><strong>Large</strong></li>
</ul>
</li>
<li><strong>Typeface</strong> – Choose typeface
<ul>
<li><strong>Monospace</strong></li>
<li><strong>Proportional</strong></li>
</ul>
</li>
<li><strong>About</strong> – Show version, copyright and licence</li>
</ul></description>
</item>
<item>
<title>Open</title>
<link>https://billthefarmer.github.io/editor/using/open/</link>
<pubDate>Wed, 04 Mar 2020 19:32:49 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/open/</guid>
<description><p>Choose a file to open from the chooser dialog that pops up. The file
will initially be read-only. Touch the Edit toolbar item to enable
editing.</p>
<p>The chooser shows a scrollable row of folder buttons and list of files
with icons. Files which appear to be media files, or are too large
will be disabled and not selectable. Touch a folder button or a folder
to change folder, or a file to open a file. Hidden files beginning
with a &lsquo;.&rsquo; will not appear.</p></description>
</item>
<item>
<title>Open Recent</title>
<link>https://billthefarmer.github.io/editor/using/open-recent/</link>
<pubDate>Wed, 04 Mar 2020 19:32:37 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/open-recent/</guid>
<description><p>Choose a file from the list that pops up. As above the file will
initially be read only. The last entry, <strong>Clear list</strong>, will clear the
list.</p></description>
</item>
<item>
<title>Save As</title>
<link>https://billthefarmer.github.io/editor/using/save-as/</link>
<pubDate>Wed, 04 Mar 2020 19:33:09 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/save-as/</guid>
<description><p>Enter a new file name in the dialog that pops up. Absolute names
starting with a slash &lsquo;/&rsquo; will be saved in that exact path. Names
without a starting slash will be saved relative to the main public
folder, <code>/sdcard/</code>, or <code>/storage/emulated/0/</code>. Touch the <strong>Storage</strong>
button to use the android file manager to save the file.</p></description>
</item>
<item>
<title>Search</title>
<link>https://billthefarmer.github.io/editor/using/search/</link>
<pubDate>Wed, 04 Mar 2020 19:38:08 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/search/</guid>
<description><p><img src="images/Editor-search.png" alt="Search"></p>
<p>Enter search text in the field that pops up in the toolbar. The first
matching item will be highlighted. Use the search button in the
keyboard for find next. The exact regular expression syntax used is in
the android documentation for <a href="https://developer.android.com/reference/java/util/regex/Pattern#sum">Pattern</a>.</p></description>
</item>
<item>
<title>Findall</title>
<link>https://billthefarmer.github.io/editor/using/findall/</link>
<pubDate>Thu, 26 Mar 2020 09:56:27 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/findall/</guid>
<description><p><img src="images/Editor-findall.png" alt="FindAll"></p>
<p>You may find all recent files that contain the current search
text. This menu item will only appear while the search widget is
active. A dialog will pop up with a list of matching files. Touch an
entry to open that file. You may repeat this or refine the search text
to find the desired file.</p></description>
</item>
<item>
<title>Go to</title>
<link>https://billthefarmer.github.io/editor/using/goto/</link>
<pubDate>Thu, 17 Nov 2022 09:49:16 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/goto/</guid>
<description><p><img src="images/Editor-goto.png" alt="Go to"></p>
<p>Select position in the current file on the horizontal seek bar in the
dialog which will pop up.</p></description>
</item>
<item>
<title>Print</title>
<link>https://billthefarmer.github.io/editor/using/print/</link>
<pubDate>Sat, 26 Nov 2022 09:54:15 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/print/</guid>
<description><p><img src="images/Editor-print.png" alt="Print"></p>
<p>Print the current file. If you would like the output highlighted, you
will need to scroll slowly through the whole file to give the app a
chance to highlight it. <strong>Caution</strong> – Attempting to print a
large file on an older device with limited resources may cause the app
to stop responding.</p></description>
</item>
<item>
<title>View Markdown</title>
<link>https://billthefarmer.github.io/editor/using/view-markdown/</link>
<pubDate>Wed, 04 Mar 2020 19:40:02 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/view-markdown/</guid>
<description><p>You will be prompted to choose a viewer for an html file containing
the encoded markdown from the current open file. If the text contains
no markdown the result will be the same text.</p></description>
</item>
<item>
<title>Character set</title>
<link>https://billthefarmer.github.io/editor/using/charset/</link>
<pubDate>Wed, 03 Nov 2021 21:12:12 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/charset/</guid>
<description><p><img src="images/Editor-charset.png" alt="Charset"></p>
<p>The current character set is displayed under the current file name. The character set is detected when a new file is read. It may be changed by selecting the Charset item in the menu, which shows the current character set.</p>
<h4 id="default">Default</h4>
<p>The default character set is set to UTF-8 on selecting New from the toolbar. It may be changed in the menu. Android defaults to UTF-8, don&rsquo;t use anything else unless you are sure what you are doing.</p></description>
</item>
<item>
<title>Typeface</title>
<link>https://billthefarmer.github.io/editor/using/typeface/</link>
<pubDate>Sun, 18 Feb 2024 10:54:01 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/typeface/</guid>
<description><p><img src="images/Editor-typeface.png" alt="Typeface"></p>
<p>The <strong>Typeface</strong> menu item shows a choice of common typefaces. These
are aliases for the fonts commonly provided on android devices. Some
of them resolve to the same font, depending on the device.</p></description>
</item>
<item>
<title>Regular Expressions</title>
<link>https://billthefarmer.github.io/editor/using/regular-expressions/</link>
<pubDate>Sun, 05 Sep 2021 09:48:08 +0100</pubDate>
<guid>https://billthefarmer.github.io/editor/using/regular-expressions/</guid>
<description><p>Explaining <a href="https://en.wikipedia.org/wiki/Regular_expression">regular expressions</a> used in the text search is beyond
the scope of these docs. There is at least one <a href="https://www.oreilly.com/library/view/mastering-regular-expressions/0596528124/">book</a> (of many)
devoted to the subject. Use <code>(?i)</code> for case insensitive search, <code>.</code>
matches any character once, <code>.?</code> matches any character once or not at
all, <code>.+</code> matches any character one or more times, <code>.*</code> matches any
character any times or not at all. Use <code>.+?</code> or <code>.*?</code> for reluctant
versions. Use <code>\b</code> for a word boundary, <code>\d</code> for a digit, <code>\s</code> for a
white space character, <code>\w</code> for a word character, so <code>\w+</code> matches
words. Use <code>[abc]</code> to match a set of characters, or <code>[a-z]</code> for a
range, so <code>\w*[aeiou]+\w*</code> should match any word with at least one
vowel in it.</p></description>
</item>
<item>
<title>Shortcuts</title>
<link>https://billthefarmer.github.io/editor/using/shortcut/</link>
<pubDate>Wed, 02 Mar 2022 09:34:09 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/shortcut/</guid>
<description><p><img src="images/Editor-widgets.png" alt="Shortcut"> <img src="images/Editor-shortcut.png" alt="Shortcut"></p>
<p><img src="images/Editor-open.png" alt="Shortcut"> <img src="images/Editor-name.png" alt="Shortcut"></p>
<p>You may create a <strong>New file</strong> or an <strong>Open file</strong> shortcut in the
launcher. The <strong>New file</strong> widget will create an shortcut to open a
new file in Editor. The <strong>Open file</strong> widget will pop up a dialog
showing the file chooser. You may choose a file or use the <strong>Storage</strong>
button. You may cancel and fill in the name and path fields, or edit
the name or path fields after choosing a file. Use the <strong>Create</strong>
button to create the shortcut. <strong>Note</strong> – content URIs returned
by the android file picker will not be resolved.</p></description>
</item>
<item>
<title>Highlight Syntax</title>
<link>https://billthefarmer.github.io/editor/using/highlight-syntax/</link>
<pubDate>Wed, 04 Mar 2020 19:41:14 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/highlight-syntax/</guid>
<description><p><img src="images/Editor-syntax.png" alt="Syntax"></p>
<p>If the current open file is a C, C++, Objective C, Dart, Go, Java,
Javascript, Python, Rust, Shell script, Swift, CSS, HTML, <a href="https://orgmode.org" title="https://orgmode.org">Emacs
Org</a> or Markdown file, the keywords, classes comments, strings, etc
will be highlighted.</p>
<h3 id="selection">Selection</h3>
<p>The type of highlighting is selected by file extension. Files with
<code>.c</code>, <code>.cc</code>, <code>.c++</code>, <code>.cxx</code>, <code>.m</code>, <code>.h</code>, <code>.dart</code>, <code>.go</code>, <code>.js</code>,
<code>.java</code>, <code>.py</code>, <code>.rs</code>, <code>.sh</code>, <code>.swift</code> extensions will be highlighted
with &lsquo;C&rsquo; style highlighting. Files with <code>.htm</code>, <code>.html</code> extensions
will be highlighted as HTML. Files with <code>.cs</code>, <code>.css</code> extensions will
be highlighted as CSS. Files with <code>.md</code> extensions will be highlighted
as markdown. Files with <code>.org</code> extensions will be highlighted as Emacs
Org.</p></description>
</item>
<item>
<title>Mode Line</title>
<link>https://billthefarmer.github.io/editor/using/mode-line/</link>
<pubDate>Wed, 04 Mar 2020 17:41:40 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/mode-line/</guid>
<description><p>If a line of text is found within the first or last two or three lines
of the file which matches the mode line pattern, the mode of the
editor will be changed after the file is loaded. The pattern is one
or more text or punctuation characters, white space, the text <code>ed:</code>
followed by one or more option patterns separated by white space.</p>
<pre><code># ed: [[no]vw] [[no]ww] [[no]sg] [[no]hs] [cs:u] [th:l|d|s|w|b|r] [ts:l|m|s] [tf:m|p|s]
</code></pre>
<p>The initial text or punctuation characters are intended to be used to
hide the mode line from compilers and interpreters by commenting it
out.</p></description>
</item>
<item>
<title>Word Count</title>
<link>https://billthefarmer.github.io/editor/using/word-count/</link>
<pubDate>Mon, 29 Mar 2021 18:47:58 +0100</pubDate>
<guid>https://billthefarmer.github.io/editor/using/word-count/</guid>
<description><p>The file word count and character count are shown in the toolbar. Due
to the algorithm used, the result may differ from that produced by
other utilities.</p></description>
</item>
<item>
<title>Extended Selection</title>
<link>https://billthefarmer.github.io/editor/using/extended-selection/</link>
<pubDate>Wed, 04 Mar 2020 17:42:02 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/extended-selection/</guid>
<description><p>If the file being edited is not a plain text file, selections created
by double tapping or long touching on the text will be extended to
enclosing delimiters (brackets, quotes) on the same text line.</p></description>
</item>
<item>
<title>Text Size</title>
<link>https://billthefarmer.github.io/editor/using/text-size/</link>
<pubDate>Fri, 16 Jul 2021 09:14:58 +0100</pubDate>
<guid>https://billthefarmer.github.io/editor/using/text-size/</guid>
<description><p>Text size may be changed from the menu or by pinch or expand gestures on the text or by doubletap and swipe. The response to gestures on large files may be slow or delayed.</p></description>
</item>
<item>
<title>Unsaved File</title>
<link>https://billthefarmer.github.io/editor/using/unsaved-file/</link>
<pubDate>Wed, 04 Mar 2020 17:42:32 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/unsaved-file/</guid>
<description><p>If you touch the new, back or open button, and the current file has
been modified, you will be prompted whether you want to save it, else
the editor will just exit or open a file chooser. The current file may
be saved on app pause using the menu option. The scroll position and
name will be remembered for the last 10 files opened.</p></description>
</item>
<item>
<title>Changed File</title>
<link>https://billthefarmer.github.io/editor/using/changed-file/</link>
<pubDate>Wed, 04 Mar 2020 17:42:49 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/changed-file/</guid>
<description><p>If a file has changed in storage while it was open in the editor, if
you attempt to save it, or the app is resumed, you will be prompted
whether to overwrite or reload the file.</p></description>
</item>
<item>
<title>Default File</title>
<link>https://billthefarmer.github.io/editor/using/default-file/</link>
<pubDate>Wed, 04 Mar 2020 17:43:09 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/default-file/</guid>
<description><p>If there is no open file any text entered will by default be saved in
<code>Documents/Editor.txt</code>. This file will be loaded on start if it
exists. Use the <strong>Save as</strong> menu item to save it elsewhere.</p></description>
</item>
<item>
<title>Shared File</title>
<link>https://billthefarmer.github.io/editor/using/shared-file/</link>
<pubDate>Wed, 04 Mar 2020 17:43:39 +0000</pubDate>
<guid>https://billthefarmer.github.io/editor/using/shared-file/</guid>
<description><p>Text files opened or shared by another app may be viewed and
edited. Some apps may share files or text using a <code>content</code> URI that
is not resolvable to a path to a file in storage. In that case the
editor will read the file into a new file. The <strong>Save</strong> item will save
the file in the original location if possible.</p>
<p><strong>Note</strong> – Apps that share files will usually only give another
app read permission. Use the <strong>Save as</strong> menu item to save the file
elsewhere.</p></description>
</item>
<item>
<title>Keyboard Shortcuts</title>
<link>https://billthefarmer.github.io/editor/using/keyboard-shortcuts/</link>
<pubDate>Wed, 21 Jul 2021 19:22:29 +0100</pubDate>
<guid>https://billthefarmer.github.io/editor/using/keyboard-shortcuts/</guid>
<description><p>When using an external keyboard, some keyboard shortcuts are
implemented:</p>
<ul>
<li>Ctrl+E – Edit mode</li>
<li>Ctrl+Shift+E – View mode</li>
<li>Ctrl+F – Search</li>
<li>Ctrl+Shift+F – Close search</li>
<li>Ctrl+Alt+F – Find next</li>
<li>Ctrl+G – Go to</li>
<li>Ctrl+M – Show menu</li>
<li>Ctrl+N – New file</li>
<li>Ctrl+O – Open file</li>
<li>Ctrl+S – Save file</li>
<li>Ctrl+Shift+S – Save as</li>
<li>Ctrl++ – Increase text size</li>
<li>Ctrl+- – Decrease text size</li>
<li>F3 – Find next</li>
<li>F10 – Show menu</li>
</ul>
<p>Many other shortcuts – Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z
are already build in to android.</p></description>
</item>
</channel>
</rss>
================================================
FILE: fastlane/metadata/android/en/changelogs/1193.txt
================================================
* Add serif and sans typeface
* Update mime types
================================================
FILE: fastlane/metadata/android/en/changelogs/162.txt
================================================
* Update file provider URI resolution
* Update build scripts
================================================
FILE: fastlane/metadata/android/en/changelogs/163.txt
================================================
* Character set detection and selection
* File size check on loading
================================================
FILE: fastlane/metadata/android/en/changelogs/164.txt
================================================
* Update Portuguese translation
================================================
FILE: fastlane/metadata/android/en/changelogs/165.txt
================================================
* Update French translation
* Remove menu radio buttons
================================================
FILE: fastlane/metadata/android/en/changelogs/166.txt
================================================
* Add fix for OxygenOS, android 11
================================================
FILE: fastlane/metadata/android/en/changelogs/167.txt
================================================
* Ellipsize open recent menu
================================================
FILE: fastlane/metadata/android/en/changelogs/168.txt
================================================
* Fix ellipsize open recent menu
================================================
FILE: fastlane/metadata/android/en/changelogs/169.txt
================================================
* Change charset detector to Mozilla UniversalChardet
================================================
FILE: fastlane/metadata/android/en/changelogs/170.txt
================================================
* Update themes
================================================
FILE: fastlane/metadata/android/en/changelogs/171.txt
================================================
* Add new file shortcut
================================================
FILE: fastlane/metadata/android/en/changelogs/172.txt
================================================
* Optional character set detection
* Hungarian translation updated
================================================
FILE: fastlane/metadata/android/en/changelogs/173.txt
================================================
* Add Emacs Org syntax highlighting
* Update shell script syntax highlighting
================================================
FILE: fastlane/metadata/android/en/changelogs/174.txt
================================================
* Add Japanese translation
================================================
FILE: fastlane/metadata/android/en/changelogs/175.txt
================================================
* Fix Japanese grammar
* Fix save check
================================================
FILE: fastlane/metadata/android/en/changelogs/176.txt
================================================
* Add goto dialog
================================================
FILE: fastlane/metadata/android/en/changelogs/177.txt
================================================
* Add print option
================================================
FILE: fastlane/metadata/android/en/changelogs/178.txt
================================================
* Add Ukranian translation
================================================
FILE: fastlane/metadata/android/en/changelogs/179.txt
================================================
* Update save as dialog
* Update goto dialog
* Update save content URI
================================================
FILE: fastlane/metadata/android/en/changelogs/180.txt
================================================
* Update file picker, intent filter
================================================
FILE: fastlane/metadata/android/en/changelogs/181.txt
================================================
* Update text selection
================================================
FILE: fastlane/metadata/android/en/changelogs/182.txt
================================================
* Add white theme
================================================
FILE: fastlane/metadata/android/en/changelogs/183.txt
================================================
* Update black, retro themes
================================================
FILE: fastlane/metadata/android/en/changelogs/184.txt
================================================
* Update themes, shortcuts
================================================
FILE: fastlane/metadata/android/en/changelogs/185.txt
================================================
* Add open last option
================================================
FILE: fastlane/metadata/android/en/changelogs/186.txt
================================================
* Add system theme
* Add open file shortcut
================================================
FILE: fastlane/metadata/android/en/changelogs/187.txt
================================================
* Check recent files exist
================================================
FILE: fastlane/metadata/android/en/changelogs/188.txt
================================================
* Add Belarusian translation
================================================
FILE: fastlane/metadata/android/en/changelogs/189.txt
================================================
* Fix recent file list
================================================
FILE: fastlane/metadata/android/en/changelogs/190.txt
================================================
* Update icons
================================================
FILE: fastlane/metadata/android/en/changelogs/191.txt
================================================
* Fix search issue
================================================
FILE: fastlane/metadata/android/en/changelogs/192.txt
================================================
* Add Basque (eu) translation
================================================
FILE: fastlane/metadata/android/en/changelogs/194.txt
================================================
* Add Arabic translation
* Add keyboard shortcut
* Add typefaces
================================================
FILE: fastlane/metadata/android/en/changelogs/195.txt
================================================
* Add keyboard shortcuts
================================================
FILE: fastlane/metadata/android/en/changelogs/196.txt
================================================
* Update Slavic translations
* Update text resizing
* Update new file
================================================
FILE: fastlane/metadata/android/en/changelogs/197.txt
================================================
* Add Dart and Rust highlighting
* Update German translation
* Update SDK, build tools
================================================
FILE: fastlane/metadata/android/en/full_description.txt
================================================
This is a very simple generic text editor which may be used standalone or to show or edit any sort of text file from another app. If you select a text file in a file manager or similar app you will be offered the option of using this editor along with whatever other apps you have installed that can show or edit a text file. Files will initially be opened read only, long touch on the display or touch the edit item in the toolbar to enable editing.
* Regular expression text search
* View markdown in browser or html viewer
* Optional auto save
* Optional word wrap
* Optional suggestions
* Optional syntax highlighting
* Character set detection and selection
* Light/Dark/Black/Retro themes
* Small/Medium/Large text size
* Monospace/Proportional typefaces
================================================
FILE: fastlane/metadata/android/en/short_description.txt
================================================
Simple generic text editor
================================================
FILE: fastlane/metadata/android/en/title.txt
================================================
Editor
================================================
FILE: fastlane/metadata/android/hu/changelogs/162.txt
================================================
* Fájlszolgáltató URI feloldásának frissítése
* Összeállítási parancsfájlok frissítése
================================================
FILE: fastlane/metadata/android/hu/changelogs/163.txt
================================================
* Karakterkészlet felismerése és kiválasztása
* Fájlméret ellenőrzése betöltéskor
================================================
FILE: fastlane/metadata/android/hu/changelogs/164.txt
================================================
* Portugál fordítás frissítése
================================================
FILE: fastlane/metadata/android/hu/changelogs/165.txt
================================================
* Francia fordítás frissítése
* Menü választógombjainak eltávolítása
================================================
FILE: fastlane/metadata/android/hu/changelogs/166.txt
================================================
* Javítás hozzáadása OxygenOS és Android 11 rendszerekhez
================================================
FILE: fastlane/metadata/android/hu/changelogs/167.txt
================================================
* Legutóbbi megnyitása menü hármasponttal ellátása
================================================
FILE: fastlane/metadata/android/hu/changelogs/168.txt
================================================
* Legutóbbi megnyitása menü hármasponttal ellátásának javítása
================================================
FILE: fastlane/metadata/android/hu/changelogs/169.txt
================================================
* Karakterkészlet-felismerő megváltoztatása a Mozilla UniversalChardet megoldására
================================================
FILE: fastlane/metadata/android/hu/changelogs/170.txt
================================================
* Témák frissítése
================================================
FILE: fastlane/metadata/android/hu/changelogs/171.txt
================================================
* Új fájl hozzáadása gyorsbillentyű
================================================
FILE: fastlane/metadata/android/hu/full_description.txt
================================================
Ez egy nagyon egyszerű, általános szövegszerkesztő, amely önállóan is, vagy bármilyen szöveges fájl egy másik alkalmazásból történő megjelenítésére vagy szerkesztésére is használható. Ha egy fájlkezelőben vagy hasonló alkalmazásban kiválaszt egy szöveges fájlt, akkor felajánlja a lehetőséget, hogy ezt a szerkesztőt bármilyen más, szöveges fájl megjelenítésére vagy szerkesztésére alkalmas telepített alkalmazással együtt használja. A fájlok kezdetben csak olvasásra lesznek megnyitva, a szerkesztés engedélyezéséhez érintse meg hosszan a kijelzőt vagy érintse meg az eszköztáron lévő szerkesztés elemet.
* Szövegkeresés reguláris kifejezéssel
* Markdown megtekintése a böngészőben vagy a HTML-megjelenítőben
* Választható automatikus mentés
* Választható szövegtördelés
* Választható javaslatok
* Választható szintaxiskiemelés
* Karakterkészlet felismerése és kiválasztása
* Világos, sötét, fekete vagy retró témák
* Kicsi, közepes vagy nagy szövegméret
* Rögzített szélességű vagy arányos betűkészletek
================================================
FILE: fastlane/metadata/android/hu/short_description.txt
================================================
Egyszerű, általános szövegszerkesztő
================================================
FILE: fastlane/metadata/android/hu/title.txt
================================================
Szerkesztő
================================================
FILE: fastlane/metadata/android/ja/changelogs/162.txt
================================================
* ファイルプロバイダの URI 解析を更新
* ビルドスクリプトの更新
================================================
FILE: fastlane/metadata/android/ja/changelogs/163.txt
================================================
* 文字セットの検出と選択
* 読み込み時のファイルサイズチェック
================================================
FILE: fastlane/metadata/android/ja/changelogs/164.txt
================================================
* ポルトガル語の翻訳を更新
================================================
FILE: fastlane/metadata/android/ja/changelogs/165.txt
================================================
* ポルトガル語の翻訳を更新
================================================
FILE: fastlane/metadata/android/ja/changelogs/166.txt
================================================
* OxygenOS、android 11の修正を追加しました。
================================================
FILE: fastlane/metadata/android/ja/changelogs/167.txt
================================================
* 最近開いたメニューを楕円形にする
================================================
FILE: fastlane/metadata/android/ja/changelogs/168.txt
================================================
* 最近使ったメニューの楕円の大きさを修正
================================================
FILE: fastlane/metadata/android/ja/changelogs/169.txt
================================================
* 文字コード検出器をMozilla UniversalChardetに変更する。
================================================
FILE: fastlane/metadata/android/ja/changelogs/170.txt
================================================
* テーマのアップデート
================================================
FILE: fastlane/metadata/android/ja/changelogs/171.txt
================================================
* 新規ファイルショートカットの追加
================================================
FILE: fastlane/metadata/android/ja/changelogs/172.txt
================================================
* オプションの文字セット検出
* ハンガリー語翻訳を更新
================================================
FILE: fastlane/metadata/android/ja/changelogs/173.txt
================================================
* Emacs Orgのシンタックスハイライトの追加
* シェルスクリプトのシンタックスハイライトを更新
================================================
FILE: fastlane/metadata/android/ja/full_description.txt
================================================
これは非常にシンプルな汎用テキストエディタで、スタンドアロンで使用することも、他のアプリからあらゆる種類のテキストファイルを表示または編集することもできます。ファイルマネージャーや同様のアプリでテキストファイルを選択すると、テキストファイルを表示または編集できる他のアプリがインストールされている場合は、このエディターを使用するオプションが提供されます。初期状態では、ファイルは読み取り専用で開かれます。ディスプレイをロングタッチするか、ツールバーの編集項目をタッチすると、編集が可能になります。
* 正規表現によるテキスト検索
* ブラウザやHTMLビューアでのマークダウン表示
* オプションの自動保存
* オプションのワードラップ
* オプションのサジェスト
* オプションの構文強調表示
* 文字セットの検出と選択
* ライト/ダーク/ブラック/レトロテーマ
* 文字サイズ(小・中・大
* 等幅/プロポーショナル書体
================================================
FILE: fastlane/metadata/android/ja/short_description.txt
================================================
シンプルな汎用テキストエディタ
================================================
FILE: fastlane/metadata/android/ja/title.txt
================================================
エディター
================================================
FILE: gradle/wrapper/gradle-wrapper.properties
================================================
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
================================================
FILE: gradle.properties
================================================
android.nonTransitiveRClass=false
android.nonFinalResIds=false
org.gradle.jvmargs=-Xmx1536M
================================================
FILE: gradlew
================================================
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
APP_NAME="Gradle"
APP_BASE_NAME=${0##*/}
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
================================================
FILE: gradlew.bat
================================================
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
================================================
FILE: src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto"
tools:ignore="GoogleAppIndexingWarning">
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/appName"
android:theme="@style/AppDarkTheme"
android:requestLegacyExternalStorage="true"
tools:ignore="AllowBackup,UnusedAttribute">
<activity
android:name="Editor"
android:exported="true"
tools:ignore=""
android:documentLaunchMode="always">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter
android:scheme="http" tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/*" />
</intent-filter>
<intent-filter
android:scheme="http" tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/svg+xml" />
</intent-filter>
<intent-filter
android:scheme="http" tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/*" />
</intent-filter>
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity>
<activity
android:name="NewFile"
android:exported="true"
android:label="@string/newFile"
android:theme="@android:style/Theme.NoDisplay">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="OpenFile"
android:exported="true"
android:label="@string/openFile"
android:theme="@style/DialogTheme">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="org.billthefarmer.editor.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>
</application>
</manifest>
================================================
FILE: src/main/java/android/support/v4/content/FileProvider.java
================================================
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.support.v4.content;
import static org.xmlpull.v1.XmlPullParser.END_DOCUMENT;
import static org.xmlpull.v1.XmlPullParser.START_TAG;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ProviderInfo;
import android.content.res.XmlResourceParser;
import android.database.Cursor;
import android.database.MatrixCursor;
import android.net.Uri;
import android.os.Environment;
import android.os.ParcelFileDescriptor;
import android.provider.OpenableColumns;
// import android.support.annotation.GuardedBy;
import android.text.TextUtils;
import android.webkit.MimeTypeMap;
import org.xmlpull.v1.XmlPullParserException;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
* FileProvider is a special subclass of {@link ContentProvider} that facilitates secure sharing
* of files associated with an app by creating a <code>content://</code> {@link Uri} for a file
* instead of a <code>file:///</code> {@link Uri}.
* <p>
* A content URI allows you to grant read and write access using
* temporary access permissions. When you create an {@link Intent} containing
* a content URI, in order to send the content URI
* to a client app, you can also call {@link Intent#setFlags(int) Intent.setFlags()} to add
* permissions. These permissions are available to the client app for as long as the stack for
* a receiving {@link android.app.Activity} is active. For an {@link Intent} going to a
* {@link android.app.Service}, the permissions are available as long as the
* {@link android.app.Service} is running.
* <p>
* In comparison, to control access to a <code>file:///</code> {@link Uri} you have to modify the
* file system permissions of the underlying file. The permissions you provide become available to
* <em>any</em> app, and remain in effect until you change them. This level of access is
* fundamentally insecure.
* <p>
* The increased level of file access security offered by a content URI
* makes FileProvider a key part of Android's security infrastructure.
* <p>
* This overview of FileProvider includes the following topics:
* </p>
* <ol>
* <li><a href="#ProviderDefinition">Defining a FileProvider</a></li>
* <li><a href="#SpecifyFiles">Specifying Available Files</a></li>
* <li><a href="#GetUri">Retrieving the Content URI for a File</li>
* <li><a href="#Permissions">Granting Temporary Permissions to a URI</a></li>
* <li><a href="#ServeUri">Serving a Content URI to Another App</a></li>
* </ol>
* <h3 id="ProviderDefinition">Defining a FileProvider</h3>
* <p>
* Since the default functionality of FileProvider includes content URI generation for files, you
* don't need to define a subclass in code. Instead, you can include a FileProvider in your app
* by specifying it entirely in XML. To specify the FileProvider component itself, add a
* <code><a href="{@docRoot}guide/topics/manifest/provider-element.html"><provider></a></code>
* element to your app manifest. Set the <code>android:name</code> attribute to
* <code>android.support.v4.content.FileProvider</code>. Set the <code>android:authorities</code>
* attribute to a URI authority based on a domain you control; for example, if you control the
* domain <code>mydomain.com</code> you should use the authority
* <code>com.mydomain.fileprovider</code>. Set the <code>android:exported</code> attribute to
* <code>false</code>; the FileProvider does not need to be public. Set the
* <a href="{@docRoot}guide/topics/manifest/provider-element.html#gprmsn"
* >android:grantUriPermissions</a> attribute to <code>true</code>, to allow you
* to grant temporary access to files. For example:
* <pre class="prettyprint">
*<manifest>
* ...
* <application>
* ...
* <provider
* android:name="android.support.v4.content.FileProvider"
* android:authorities="com.mydomain.fileprovider"
* android:exported="false"
* android:grantUriPermissions="true">
* ...
* </provider>
* ...
* </application>
*</manifest></pre>
* <p>
* If you want to override any of the default behavior of FileProvider methods, extend
* the FileProvider class and use the fully-qualified class name in the <code>android:name</code>
* attribute of the <code><provider></code> element.
* <h3 id="SpecifyFiles">Specifying Available Files</h3>
* A FileProvider can only generate a content URI for files in directories that you specify
* beforehand. To specify a directory, specify the its storage area and path in XML, using child
* elements of the <code><paths></code> element.
* For example, the following <code>paths</code> element tells FileProvider that you intend to
* request content URIs for the <code>images/</code> subdirectory of your private file area.
* <pre class="prettyprint">
*<paths xmlns:android="http://schemas.android.com/apk/res/android">
* <files-path name="my_images" path="images/"/>
* ...
*</paths>
*</pre>
* <p>
* The <code><paths></code> element must contain one or more of the following child elements:
* </p>
* <dl>
* <dt>
* <pre class="prettyprint">
*<files-path name="<i>name</i>" path="<i>path</i>" />
*</pre>
* </dt>
* <dd>
* Represents files in the <code>files/</code> subdirectory of your app's internal storage
* area. This subdirectory is the same as the value returned by {@link Context#getFilesDir()
* Context.getFilesDir()}.
* </dd>
* <dt>
* <pre>
*<cache-path name="<i>name</i>" path="<i>path</i>" />
*</pre>
* <dt>
* <dd>
* Represents files in the cache subdirectory of your app's internal storage area. The root path
* of this subdirectory is the same as the value returned by {@link Context#getCacheDir()
* getCacheDir()}.
* </dd>
* <dt>
* <pre class="prettyprint">
*<external-path name="<i>name</i>" path="<i>path</i>" />
*</pre>
* </dt>
* <dd>
* Represents files in the root of the external storage area. The root path of this subdirectory
* is the same as the value returned by
* {@link Environment#getExternalStorageDirectory() Environment.getExternalStorageDirectory()}.
* </dd>
* <dt>
* <pre class="prettyprint">
*<external-files-path name="<i>name</i>" path="<i>path</i>" />
*</pre>
* </dt>
* <dd>
* Represents files in the root of your app's external storage area. The root path of this
* subdirectory is the same as the value returned by
* {@code Context#getExternalFilesDir(String) Context.getExternalFilesDir(null)}.
* </dd>
* <dt>
* <pre class="prettyprint">
*<external-cache-path name="<i>name</i>" path="<i>path</i>" />
*</pre>
* </dt>
* <dd>
* Represents files in the root of your app's external cache area. The root path of this
* subdirectory is the same as the value returned by
* {@link Context#getExternalCacheDir() Context.getExternalCacheDir()}.
* </dd>
* </dl>
* <p>
* These child elements all use the same attributes:
* </p>
* <dl>
* <dt>
* <code>name="<i>name</i>"</code>
* </dt>
* <dd>
* A URI path segment. To enforce security, this value hides the name of the subdirectory
* you're sharing. The subdirectory name for this value is contained in the
* <code>path</code> attribute.
* </dd>
* <dt>
* <code>path="<i>path</i>"</code>
* </dt>
* <dd>
* The subdirectory you're sharing. While the <code>name</code> attribute is a URI path
* segment, the <code>path</code> value is an actual subdirectory name. Notice that the
* value refers to a <b>subdirectory</b>, not an individual file or files. You can't
* share a single file by its file name, nor can you specify a subset of files using
* wildcards.
* </dd>
* </dl>
* <p>
* You must specify a child element of <code><paths></code> for each directory that contains
* files for which you want content URIs. For example, these XML elements specify two directories:
* <pre class="prettyprint">
*<paths xmlns:android="http://schemas.android.com/apk/res/android">
* <files-path name="my_images" path="images/"/>
* <files-path name="my_docs" path="docs/"/>
*</paths>
*</pre>
* <p>
* Put the <code><paths></code> element and its children in an XML file in your project.
* For example, you can add them to a new file called <code>res/xml/file_paths.xml</code>.
* To link this file to the FileProvider, add a
* <a href="{@docRoot}guide/topics/manifest/meta-data-element.html"><meta-data></a> element
* as a child of the <code><provider></code> element that defines the FileProvider. Set the
* <code><meta-data></code> element's "android:name" attribute to
* <code>android.support.FILE_PROVIDER_PATHS</code>. Set the element's "android:resource" attribute
* to <code>@xml/file_paths</code> (notice that you don't specify the <code>.xml</code>
* extension). For example:
* <pre class="prettyprint">
*<provider
* android:name="android.support.v4.content.FileProvider"
* android:authorities="com.mydomain.fileprovider"
* android:exported="false"
* android:grantUriPermissions="true">
* <meta-data
* android:name="android.support.FILE_PROVIDER_PATHS"
* android:resource="@xml/file_paths" />
*</provider>
*</pre>
* <h3 id="GetUri">Generating the Content URI for a File</h3>
* <p>
* To share a file with another app using a content URI, your app has to generate the content URI.
* To generate the content URI, create a new {@link File} for the file, then pass the {@link File}
* to {@link #getUriForFile(Context, String, File) getUriForFile()}. You can send the content URI
* returned by {@link #getUriForFile(Context, String, File) getUriForFile()} to another app in an
* {@link android.content.Intent}. The client app that receives the content URI can open the file
* and access its contents by calling
* {@link android.content.ContentResolver#openFileDescriptor(Uri, String)
* ContentResolver.openFileDescriptor} to get a {@link ParcelFileDescriptor}.
* <p>
* For example, suppose your app is offering files to other apps with a FileProvider that has the
* authority <code>com.mydomain.fileprovider</code>. To get a content URI for the file
* <code>default_image.jpg</code> in the <code>images/</code> subdirectory of your internal storage
* add the following code:
* <pre class="prettyprint">
*File imagePath = new File(Context.getFilesDir(), "images");
*File newFile = new File(imagePath, "default_image.jpg");
*Uri contentUri = getUriForFile(getContext(), "com.mydomain.fileprovider", newFile);
*</pre>
* As a result of the previous snippet,
* {@link #getUriForFile(Context, String, File) getUriForFile()} returns the content URI
* <code>content://com.mydomain.fileprovider/my_images/default_image.jpg</code>.
* <h3 id="Permissions">Granting Temporary Permissions to a URI</h3>
* To grant an access permission to a content URI returned from
* {@link #getUriForFile(Context, String, File) getUriForFile()}, do one of the following:
* <ul>
* <li>
* Call the method
* {@link Context#grantUriPermission(String, Uri, int)
* Context.grantUriPermission(package, Uri, mode_flags)} for the <code>content://</code>
* {@link Uri}, using the desired mode flags. This grants temporary access permission for the
* content URI to the specified package, according to the value of the
* the <code>mode_flags</code> parameter, which you can set to
* {@link Intent#FLAG_GRANT_READ_URI_PERMISSION}, {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION}
* or both. The permission remains in effect until you revoke it by calling
* {@link Context#revokeUriPermission(Uri, int) revokeUriPermission()} or until the device
* reboots.
* </li>
* <li>
* Put the content URI in an {@link Intent} by calling {@link Intent#setData(Uri) setData()}.
* </li>
* <li>
* Next, call the method {@link Intent#setFlags(int) Intent.setFlags()} with either
* {@link Intent#FLAG_GRANT_READ_URI_PERMISSION} or
* {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} or both.
* </li>
* <li>
* Finally, send the {@link Intent} to
* another app. Most often, you do this by calling
* {@link android.app.Activity#setResult(int, android.content.Intent) setResult()}.
* <p>
* Permissions granted in an {@link Intent} remain in effect while the stack of the receiving
* {@link android.app.Activity} is active. When the stack finishes, the permissions are
* automatically removed. Permissions granted to one {@link android.app.Activity} in a client
* app are automatically extended to other components of that app.
* </p>
* </li>
* </ul>
* <h3 id="ServeUri">Serving a Content URI to Another App</h3>
* <p>
* There are a variety of ways to serve the content URI for a file to a client app. One common way
* is for the client app to start your app by calling
* {@link android.app.Activity#startActivityForResult(Intent, int, Bundle) startActivityResult()},
* which sends an {@link Intent} to your app to start an {@link android.app.Activity} in your app.
* In response, your app can immediately return a content URI to the client app or present a user
* interface that allows the user to pick a file. In the latter case, once the user picks the file
* your app can return its content URI. In both cases, your app returns the content URI in an
* {@link Intent} sent via {@link android.app.Activity#setResult(int, Intent) setResult()}.
* </p>
* <p>
* You can also put the content URI in a {@link android.content.ClipData} object and then add the
* object to an {@link Intent} you send to a client app. To do this, call
* {@link Intent#setClipData(ClipData) Intent.setClipData()}. When you use this approach, you can
* add multiple {@link android.content.ClipData} objects to the {@link Intent}, each with its own
* content URI. When you call {@link Intent#setFlags(int) Intent.setFlags()} on the {@link Intent}
* to set temporary access permissions, the same permissions are applied to all of the content
* URIs.
* </p>
* <p class="note">
* <strong>Note:</strong> The {@link Intent#setClipData(ClipData) Intent.setClipData()} method is
* only available in platform version 16 (Android 4.1) and later. If you want to maintain
* compatibility with previous versions, you should send one content URI at a time in the
* {@link Intent}. Set the action to {@link Intent#ACTION_SEND} and put the URI in data by calling
* {@link Intent#setData setData()}.
* </p>
* <h3 id="">More Information</h3>
* <p>
* To learn more about FileProvider, see the Android training class
* <a href="{@docRoot}training/secure-file-sharing/index.html">Sharing Files Securely with URIs</a>.
* </p>
*/
public class FileProvider extends ContentProvider {
private static final String[] COLUMNS = {
OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE };
private static final String
META_DATA_FILE_PROVIDER_PATHS = "android.support.FILE_PROVIDER_PATHS";
private static final String TAG_ROOT_PATH = "root-path";
private static final String TAG_FILES_PATH = "files-path";
private static final String TAG_CACHE_PATH = "cache-path";
private static final String TAG_EXTERNAL = "external-path";
private static final String TAG_EXTERNAL_FILES = "external-files-path";
private static final String TAG_EXTERNAL_CACHE = "external-cache-path";
private static final String ATTR_NAME = "name";
private static final String ATTR_PATH = "path";
private static final File DEVICE_ROOT = new File("/");
// @GuardedBy("sCache")
private static HashMap<String, PathStrategy> sCache = new HashMap<String, PathStrategy>();
private PathStrategy mStrategy;
/**
* The default FileProvider implementation does not need to be initialized. If you want to
* override this method, you must provide your own subclass of FileProvider.
*/
@Override
public boolean onCreate() {
return true;
}
/**
* After the FileProvider is instantiated, this method is called to provide the system with
* information about the provider.
*
* @param context A {@link Context} for the current component.
* @param info A {@link ProviderInfo} for the new provider.
*/
@Override
public void attachInfo(Context context, ProviderInfo info) {
super.attachInfo(context, info);
// Sanity check our security
if (info.exported) {
throw new SecurityException("Provider must not be exported");
}
if (!info.grantUriPermissions) {
throw new SecurityException("Provider must grant uri permissions");
}
mStrategy = getPathStrategy(context, info.authority);
}
/**
* Return a content URI for a given {@link File}. Specific temporary
* permissions for the content URI can be set with
* {@link Context#grantUriPermission(String, Uri, int)}, or added
* to an {@link Intent} by calling {@link Intent#setData(Uri) setData()} and then
* {@link Intent#setFlags(int) setFlags()}; in both cases, the applicable flags are
* {@link Intent#FLAG_GRANT_READ_URI_PERMISSION} and
* {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION}. A FileProvider can only return a
* <code>content</code> {@link Uri} for file paths defined in their <code><paths></code>
* meta-data element. See the Class Overview for more information.
*
* @param context A {@link Context} for the current component.
* @param authority The authority of a {@link FileProvider} defined in a
* {@code <provider>} element in your app's manifest.
* @param file A {@link File} pointing to the filename for which you want a
* <code>content</code> {@link Uri}.
* @return A content URI for the file.
* @throws IllegalArgumentException When the given {@link File} is outside
* the paths supported by the provider.
*/
public static Uri getUriForFile(Context context, String authority, File file) {
final PathStrategy strategy = getPathStrategy(context, authority);
return strategy.getUriForFile(file);
}
/**
* Use a content URI returned by
* {@link #getUriForFile(Context, String, File) getUriForFile()} to get information about a file
* managed by the FileProvider.
* FileProvider reports the column names defined in {@link android.provider.OpenableColumns}:
* <ul>
* <li>{@link android.provider.OpenableColumns#DISPLAY_NAME}</li>
* <li>{@link android.provider.OpenableColumns#SIZE}</li>
* </ul>
* For more information, see
* {@link ContentProvider#query(Uri, String[], String, String[], String)
* ContentProvider.query()}.
*
* @param uri A content URI returned by {@link #getUriForFile}.
* @param projection The list of columns to put into the {@link Cursor}. If null all columns are
* included.
* @param selection Selection criteria to apply. If null then all data that matches the content
* URI is returned.
* @param selectionArgs An array of {@link java.lang.String}, containing arguments to bind to
* the <i>selection</i> parameter. The <i>query</i> method scans <i>selection</i> from left to
* right and iterates through <i>selectionArgs</i>, replacing the current "?" character in
* <i>selection</i> with the value at the current position in <i>selectionArgs</i>. The
* values are bound to <i>selection</i> as {@link java.lang.String} values.
* @param sortOrder A {@link java.lang.String} containing the column name(s) on which to sort
* the resulting {@link Cursor}.
* @return A {@link Cursor} containing the results of the query.
*
*/
@Override
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder) {
// ContentProvider has already checked granted permissions
final File file = mStrategy.getFileForUri(uri);
if (projection == null) {
projection = COLUMNS;
}
String[] cols = new String[projection.length];
Object[] values = new Object[projection.length];
int i = 0;
for (String col : projection) {
if (OpenableColumns.DISPLAY_NAME.equals(col)) {
cols[i] = OpenableColumns.DISPLAY_NAME;
values[i++] = file.getName();
} else if (OpenableColumns.SIZE.equals(col)) {
cols[i] = OpenableColumns.SIZE;
values[i++] = file.length();
}
}
cols = copyOf(cols, i);
values = copyOf(values, i);
final MatrixCursor cursor = new MatrixCursor(cols, 1);
cursor.addRow(values);
return cursor;
}
/**
* Returns the MIME type of a content URI returned by
* {@link #getUriForFile(Context, String, File) getUriForFile()}.
*
* @param uri A content URI returned by
* {@link #getUriForFile(Context, String, File) getUriForFile()}.
* @return If the associated file has an extension, the MIME type associated with that
* extension; otherwise <code>application/octet-stream</code>.
*/
@Override
public String getType(Uri uri) {
// ContentProvider has already checked granted permissions
final File file = mStrategy.getFileForUri(uri);
final int lastDot = file.getName().lastIndexOf('.');
if (lastDot >= 0) {
final String extension = file.getName().substring(lastDot + 1);
final String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
if (mime != null) {
return mime;
}
}
return "application/octet-stream";
}
/**
* By default, this method throws an {@link java.lang.UnsupportedOperationException}. You must
* subclass FileProvider if you want to provide different functionality.
*/
@Override
public Uri insert(Uri uri, ContentValues values) {
throw new UnsupportedOperationException("No external inserts");
}
/**
* By default, this method throws an {@link java.lang.UnsupportedOperationException}. You must
* subclass FileProvider if you want to provide different functionality.
*/
@Override
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
throw new UnsupportedOperationException("No external updates");
}
/**
* Deletes the file associated with the specified content URI, as
* returned by {@link #getUriForFile(Context, String, File) getUriForFile()}. Notice that this
* method does <b>not</b> throw an {@link java.io.IOException}; you must check its return value.
*
* @param uri A content URI for a file, as returned by
* {@link #getUriForFile(Context, String, File) getUriForFile()}.
* @param selection Ignored. Set to {@code null}.
* @param selectionArgs Ignored. Set to {@code null}.
* @return 1 if the delete succeeds; otherwise, 0.
*/
@Override
public int delete(Uri uri, String selection, String[] selectionArgs) {
// ContentProvider has already checked granted permissions
final File file = mStrategy.getFileForUri(uri);
return file.delete() ? 1 : 0;
}
/**
* By default, FileProvider automatically returns the
* {@link ParcelFileDescriptor} for a file associated with a <code>content://</code>
* {@link Uri}. To get the {@link ParcelFileDescriptor}, call
* {@link android.content.ContentResolver#openFileDescriptor(Uri, String)
* ContentResolver.openFileDescriptor}.
*
* To override this method, you must provide your own subclass of FileProvider.
*
* @param uri A content URI associated with a file, as returned by
* {@link #getUriForFile(Context, String, File) getUriForFile()}.
* @param mode Access mode for the file. May be "r" for read-only access, "rw" for read and
* write access, or "rwt" for read and write access that truncates any existing file.
* @return A new {@link ParcelFileDescriptor} with which you can access the file.
*/
@Override
public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException {
// ContentProvider has already checked granted permissions
final File file = mStrategy.getFileForUri(uri);
final int fileMode = modeToMode(mode);
return ParcelFileDescriptor.open(file, fileMode);
}
/**
* Return {@link PathStrategy} for given authority, either by parsing or
* returning from cache.
*/
private static PathStrategy getPathStrategy(Context context, String authority) {
PathStrategy strat;
synchronized (sCache) {
strat = sCache.get(authority);
if (strat == null) {
try {
strat = parsePathStrategy(context, authority);
} catch (IOException e) {
throw new IllegalArgumentException(
"Failed to parse " + META_DATA_FILE_PROVIDER_PATHS + " meta-data", e);
} catch (XmlPullParserException e) {
throw new IllegalArgumentException(
"Failed to parse " + META_DATA_FILE_PROVIDER_PATHS + " meta-data", e);
}
sCache.put(authority, strat);
}
}
return strat;
}
/**
* Parse and return {@link PathStrategy} for given authority as defined in
* {@link #META_DATA_FILE_PROVIDER_PATHS} {@code <meta-data>}.
*
* @see #getPathStrategy(Context, String)
*/
private static PathStrategy parsePathStrategy(Context context, String authority)
throws IOException, XmlPullParserException {
final SimplePathStrategy strat = new SimplePathStrategy(authority);
final ProviderInfo info = context.getPackageManager()
.resolveContentProvider(authority, PackageManager.GET_META_DATA);
final XmlResourceParser in = info.loadXmlMetaData(
context.getPackageManager(), META_DATA_FILE_PROVIDER_PATHS);
if (in == null) {
throw new IllegalArgumentException(
"Missing " + META_DATA_FILE_PROVIDER_PATHS + " meta-data");
}
int type;
while ((type = in.next()) != END_DOCUMENT) {
if (type == START_TAG) {
final String tag = in.getName();
final String name = in.getAttributeV
gitextract_btz8p0l7/
├── .github/
│ └── workflows/
│ ├── build.yml
│ └── release.yml
├── .gitignore
├── Charset.md
├── Chooser.md
├── LICENSE
├── Mode.md
├── README.md
├── Syntax.md
├── build.gradle
├── docs/
│ ├── 404.html
│ ├── categories/
│ │ └── index.xml
│ ├── css/
│ │ ├── custom.css
│ │ └── styles.css
│ ├── index.html
│ ├── index.xml
│ ├── introduction/
│ │ └── index.xml
│ ├── sitemap.xml
│ ├── tags/
│ │ └── index.xml
│ └── using/
│ └── index.xml
├── fastlane/
│ └── metadata/
│ └── android/
│ ├── en/
│ │ ├── changelogs/
│ │ │ ├── 1193.txt
│ │ │ ├── 162.txt
│ │ │ ├── 163.txt
│ │ │ ├── 164.txt
│ │ │ ├── 165.txt
│ │ │ ├── 166.txt
│ │ │ ├── 167.txt
│ │ │ ├── 168.txt
│ │ │ ├── 169.txt
│ │ │ ├── 170.txt
│ │ │ ├── 171.txt
│ │ │ ├── 172.txt
│ │ │ ├── 173.txt
│ │ │ ├── 174.txt
│ │ │ ├── 175.txt
│ │ │ ├── 176.txt
│ │ │ ├── 177.txt
│ │ │ ├── 178.txt
│ │ │ ├── 179.txt
│ │ │ ├── 180.txt
│ │ │ ├── 181.txt
│ │ │ ├── 182.txt
│ │ │ ├── 183.txt
│ │ │ ├── 184.txt
│ │ │ ├── 185.txt
│ │ │ ├── 186.txt
│ │ │ ├── 187.txt
│ │ │ ├── 188.txt
│ │ │ ├── 189.txt
│ │ │ ├── 190.txt
│ │ │ ├── 191.txt
│ │ │ ├── 192.txt
│ │ │ ├── 194.txt
│ │ │ ├── 195.txt
│ │ │ ├── 196.txt
│ │ │ └── 197.txt
│ │ ├── full_description.txt
│ │ ├── short_description.txt
│ │ └── title.txt
│ ├── hu/
│ │ ├── changelogs/
│ │ │ ├── 162.txt
│ │ │ ├── 163.txt
│ │ │ ├── 164.txt
│ │ │ ├── 165.txt
│ │ │ ├── 166.txt
│ │ │ ├── 167.txt
│ │ │ ├── 168.txt
│ │ │ ├── 169.txt
│ │ │ ├── 170.txt
│ │ │ └── 171.txt
│ │ ├── full_description.txt
│ │ ├── short_description.txt
│ │ └── title.txt
│ └── ja/
│ ├── changelogs/
│ │ ├── 162.txt
│ │ ├── 163.txt
│ │ ├── 164.txt
│ │ ├── 165.txt
│ │ ├── 166.txt
│ │ ├── 167.txt
│ │ ├── 168.txt
│ │ ├── 169.txt
│ │ ├── 170.txt
│ │ ├── 171.txt
│ │ ├── 172.txt
│ │ └── 173.txt
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
├── gradle/
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
└── src/
└── main/
├── AndroidManifest.xml
├── java/
│ ├── android/
│ │ └── support/
│ │ └── v4/
│ │ └── content/
│ │ └── FileProvider.java
│ ├── com/
│ │ └── ibm/
│ │ └── icu/
│ │ └── text/
│ │ ├── CharsetDetector.java
│ │ ├── CharsetMatch.java
│ │ ├── CharsetRecog_2022.java
│ │ ├── CharsetRecog_UTF8.java
│ │ ├── CharsetRecog_Unicode.java
│ │ ├── CharsetRecog_mbcs.java
│ │ ├── CharsetRecog_sbcs.java
│ │ └── CharsetRecognizer.java
│ └── org/
│ └── billthefarmer/
│ └── editor/
│ ├── Editor.java
│ ├── FileAdapter.java
│ ├── FileUtils.java
│ ├── NewFile.java
│ └── OpenFile.java
└── res/
├── color/
│ └── text_color_retro.xml
├── drawable/
│ ├── ic_add_black_24dp.xml
│ ├── ic_add_white_24dp.xml
│ ├── ic_edit_black_24dp.xml
│ ├── ic_edit_white_24dp.xml
│ ├── ic_folder_open_black_24dp.xml
│ ├── ic_folder_open_white_24dp.xml
│ ├── ic_image_black_24dp.xml
│ ├── ic_image_white_24dp.xml
│ ├── ic_list_black_24dp.xml
│ ├── ic_list_white_24dp.xml
│ ├── ic_reply_black_24dp.xml
│ ├── ic_reply_white_24dp.xml
│ ├── ic_save_black_24dp.xml
│ ├── ic_save_white_24dp.xml
│ ├── ic_sd_storage_black_24dp.xml
│ ├── ic_sd_storage_white_24dp.xml
│ ├── ic_stop_black_24dp.xml
│ ├── ic_stop_white_24dp.xml
│ ├── ic_videocam_black_24dp.xml
│ ├── ic_videocam_white_24dp.xml
│ ├── ic_volume_up_black_24dp.xml
│ └── ic_volume_up_white_24dp.xml
├── layout/
│ ├── custom.xml
│ ├── edit.xml
│ ├── file.xml
│ ├── open_file.xml
│ ├── save_path.xml
│ ├── seek_bar.xml
│ └── wrap.xml
├── menu/
│ └── main.xml
├── values/
│ ├── arrays.xml
│ ├── attrs.xml
│ ├── colours.xml
│ ├── strings.xml
│ └── styles.xml
├── values-ar/
│ └── strings.xml
├── values-be/
│ └── strings.xml
├── values-de/
│ └── strings.xml
├── values-el/
│ └── strings.xml
├── values-es/
│ └── strings.xml
├── values-eu/
│ └── strings.xml
├── values-fa/
│ └── strings.xml
├── values-fr/
│ └── strings.xml
├── values-hu/
│ └── strings.xml
├── values-is/
│ └── strings.xml
├── values-it/
│ └── strings.xml
├── values-ja/
│ └── strings.xml
├── values-ku-rIQ/
│ └── strings.xml
├── values-lv/
│ └── strings.xml
├── values-nl/
│ └── strings.xml
├── values-pl/
│ └── strings.xml
├── values-pt/
│ └── strings.xml
├── values-pt-rBR/
│ └── strings.xml
├── values-ru/
│ └── strings.xml
├── values-tr/
│ └── strings.xml
├── values-uk/
│ └── strings.xml
├── values-zh-rCN/
│ └── strings.xml
├── values-zh-rTW/
│ └── strings.xml
└── xml/
├── filepaths.xml
└── shortcuts.xml
SYMBOL INDEX (326 symbols across 14 files)
FILE: src/main/java/android/support/v4/content/FileProvider.java
class FileProvider (line 324) | public class FileProvider extends ContentProvider {
method onCreate (line 352) | @Override
method attachInfo (line 364) | @Override
method getUriForFile (line 399) | public static Uri getUriForFile(Context context, String authority, Fil...
method query (line 432) | @Override
method getType (line 472) | @Override
method insert (line 493) | @Override
method update (line 502) | @Override
method delete (line 518) | @Override
method openFile (line 540) | @Override
method getPathStrategy (line 552) | private static PathStrategy getPathStrategy(Context context, String au...
method parsePathStrategy (line 578) | private static PathStrategy parsePathStrategy(Context context, String ...
type PathStrategy (line 636) | interface PathStrategy {
method getUriForFile (line 640) | public Uri getUriForFile(File file);
method getFileForUri (line 645) | public File getFileForUri(Uri uri);
class SimplePathStrategy (line 658) | static class SimplePathStrategy implements PathStrategy {
method SimplePathStrategy (line 662) | public SimplePathStrategy(String authority) {
method addRoot (line 670) | public void addRoot(String name, File root) {
method getUriForFile (line 686) | @Override
method getFileForUri (line 724) | @Override
method modeToMode (line 755) | private static int modeToMode(String mode) {
method buildPath (line 780) | private static File buildPath(File base, String... segments) {
method copyOf (line 790) | private static String[] copyOf(String[] original, int newLength) {
method copyOf (line 796) | private static Object[] copyOf(Object[] original, int newLength) {
FILE: src/main/java/com/ibm/icu/text/CharsetDetector.java
class CharsetDetector (line 40) | public class CharsetDetector {
method CharsetDetector (line 57) | public CharsetDetector() {
method setDeclaredEncoding (line 76) | public CharsetDetector setDeclaredEncoding(String encoding) {
method setText (line 90) | public CharsetDetector setText(byte [] in) {
method setText (line 115) | public CharsetDetector setText(InputStream in) throws IOException {
method detect (line 157) | public CharsetMatch detect() {
method detectAll (line 186) | public CharsetMatch[] detectAll() {
method getReader (line 233) | public Reader getReader(InputStream in, String declaredEncoding) {
method getString (line 267) | public String getString(byte[] in, String declaredEncoding)
method getAllDetectableCharsets (line 302) | public static String[] getAllDetectableCharsets() {
method inputFilterEnabled (line 319) | public boolean inputFilterEnabled()
method enableInputFilter (line 335) | public boolean enableInputFilter(boolean filter)
method MungeInput (line 348) | private void MungeInput() {
class CSRecognizerInfo (line 462) | private static class CSRecognizerInfo {
method CSRecognizerInfo (line 466) | CSRecognizerInfo(CharsetRecognizer recognizer, boolean isDefaultEnab...
method getDetectableCharsets (line 525) | @Deprecated
method setDetectableCharset (line 553) | @Deprecated
FILE: src/main/java/com/ibm/icu/text/CharsetMatch.java
class CharsetMatch (line 31) | public class CharsetMatch implements Comparable<CharsetMatch> {
method getReader (line 47) | public Reader getReader() {
method getString (line 70) | public String getString() throws java.io.IOException {
method getString (line 89) | public String getString(int maxLength) throws java.io.IOException {
method getConfidence (line 133) | public int getConfidence() {
method getName (line 152) | public String getName() {
method getLanguage (line 163) | public String getLanguage() {
method compareTo (line 180) | @Override
method CharsetMatch (line 194) | CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) {
method CharsetMatch (line 214) | CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf, Str...
FILE: src/main/java/com/ibm/icu/text/CharsetRecog_2022.java
class CharsetRecog_2022 (line 19) | abstract class CharsetRecog_2022 extends CharsetRecognizer {
method match (line 34) | int match(byte [] text, int textLen, byte [][] escapeSequences) {
class CharsetRecog_2022JP (line 100) | static class CharsetRecog_2022JP extends CharsetRecog_2022 {
method getName (line 116) | @Override
method match (line 121) | @Override
class CharsetRecog_2022KR (line 128) | static class CharsetRecog_2022KR extends CharsetRecog_2022 {
method getName (line 133) | @Override
method match (line 138) | @Override
class CharsetRecog_2022CN (line 145) | static class CharsetRecog_2022CN extends CharsetRecog_2022 {
method getName (line 160) | @Override
method match (line 165) | @Override
FILE: src/main/java/com/ibm/icu/text/CharsetRecog_UTF8.java
class CharsetRecog_UTF8 (line 14) | class CharsetRecog_UTF8 extends CharsetRecognizer {
method getName (line 16) | @Override
method match (line 24) | @Override
FILE: src/main/java/com/ibm/icu/text/CharsetRecog_Unicode.java
class CharsetRecog_Unicode (line 17) | abstract class CharsetRecog_Unicode extends CharsetRecognizer {
method getName (line 22) | @Override
method match (line 28) | @Override
method codeUnit16FromBytes (line 31) | static int codeUnit16FromBytes(byte hi, byte lo) {
method adjustConfidence (line 40) | static int adjustConfidence(int codeUnit, int confidence) {
class CharsetRecog_UTF_16_BE (line 54) | static class CharsetRecog_UTF_16_BE extends CharsetRecog_Unicode
method getName (line 56) | @Override
method match (line 62) | @Override
class CharsetRecog_UTF_16_LE (line 90) | static class CharsetRecog_UTF_16_LE extends CharsetRecog_Unicode
method getName (line 92) | @Override
method match (line 98) | @Override
class CharsetRecog_UTF_32 (line 126) | static abstract class CharsetRecog_UTF_32 extends CharsetRecog_Unicode
method getChar (line 128) | abstract int getChar(byte[] input, int index);
method getName (line 130) | @Override
method match (line 133) | @Override
class CharsetRecog_UTF_32_BE (line 180) | static class CharsetRecog_UTF_32_BE extends CharsetRecog_UTF_32
method getChar (line 182) | @Override
method getName (line 189) | @Override
class CharsetRecog_UTF_32_LE (line 197) | static class CharsetRecog_UTF_32_LE extends CharsetRecog_UTF_32
method getChar (line 199) | @Override
method getName (line 206) | @Override
FILE: src/main/java/com/ibm/icu/text/CharsetRecog_mbcs.java
class CharsetRecog_mbcs (line 26) | abstract class CharsetRecog_mbcs extends CharsetRecognizer {
method getName (line 32) | @Override
method match (line 48) | int match(CharsetDetector det, int [] commonChars) {
class iteratedChar (line 143) | static class iteratedChar {
method reset (line 149) | void reset() {
method nextByte (line 156) | int nextByte(CharsetDetector det) {
method nextChar (line 178) | abstract boolean nextChar(iteratedChar it, CharsetDetector det);
class CharsetRecog_sjis (line 188) | static class CharsetRecog_sjis extends CharsetRecog_mbcs {
method nextChar (line 200) | @Override
method match (line 225) | @Override
method getName (line 231) | @Override
method getLanguage (line 236) | @Override
class CharsetRecog_big5 (line 250) | static class CharsetRecog_big5 extends CharsetRecog_mbcs {
method nextChar (line 266) | @Override
method match (line 294) | @Override
method getName (line 300) | @Override
method getLanguage (line 306) | @Override
class CharsetRecog_euc (line 320) | abstract static class CharsetRecog_euc extends CharsetRecog_mbcs {
method nextChar (line 328) | @Override
class CharsetRecog_euc_jp (line 389) | static class CharsetRecog_euc_jp extends CharsetRecog_euc {
method getName (line 404) | @Override
method match (line 409) | @Override
method getLanguage (line 415) | @Override
class CharsetRecog_euc_kr (line 426) | static class CharsetRecog_euc_kr extends CharsetRecog_euc {
method getName (line 442) | @Override
method match (line 447) | @Override
method getLanguage (line 453) | @Override
class CharsetRecog_gb_18030 (line 466) | static class CharsetRecog_gb_18030 extends CharsetRecog_mbcs {
method nextChar (line 474) | @Override
method getName (line 543) | @Override
method match (line 548) | @Override
method getLanguage (line 554) | @Override
FILE: src/main/java/com/ibm/icu/text/CharsetRecog_sbcs.java
class CharsetRecog_sbcs (line 17) | abstract class CharsetRecog_sbcs extends CharsetRecognizer {
method getName (line 22) | @Override
class NGramParser (line 25) | static class NGramParser
method NGramParser (line 41) | public NGramParser(int[] theNgramList, byte[] theByteMap)
method search (line 54) | private static int search(int[] table, int value)
method lookup (line 93) | private void lookup(int thisNgram)
method addByte (line 103) | protected void addByte(int b)
method nextByte (line 109) | private int nextByte(CharsetDetector det)
method parseCharacters (line 118) | protected void parseCharacters(CharsetDetector det)
method parse (line 138) | public int parse(CharsetDetector det)
method parse (line 142) | public int parse(CharsetDetector det, byte spaceCh)
class NGramParser_IBM420 (line 168) | static class NGramParser_IBM420 extends NGramParser
method NGramParser_IBM420 (line 193) | public NGramParser_IBM420(int[] theNgramList, byte[] theByteMap)
method isLamAlef (line 198) | private byte isLamAlef(byte b) {
method nextByte (line 216) | private int nextByte(CharsetDetector det)
method parseCharacters (line 234) | @Override
method match (line 269) | int match(CharsetDetector det, int[] ngrams, byte[] byteMap)
method match (line 274) | int match(CharsetDetector det, int[] ngrams, byte[] byteMap, byte spa...
method matchIBM420 (line 280) | int matchIBM420(CharsetDetector det, int[] ngrams, byte[] byteMap, by...
class NGramsPlusLang (line 285) | static class NGramsPlusLang {
method NGramsPlusLang (line 288) | NGramsPlusLang(String la, int [] ng) {
class CharsetRecog_8859_1 (line 294) | static class CharsetRecog_8859_1 extends CharsetRecog_sbcs
method match (line 425) | @Override
method getName (line 442) | @Override
class CharsetRecog_8859_2 (line 450) | static class CharsetRecog_8859_2 extends CharsetRecog_sbcs
method match (line 522) | @Override
method getName (line 538) | @Override
class CharsetRecog_8859_5 (line 547) | abstract static class CharsetRecog_8859_5 extends CharsetRecog_sbcs
method getName (line 584) | @Override
class CharsetRecog_8859_5_ru (line 591) | static class CharsetRecog_8859_5_ru extends CharsetRecog_8859_5
method getLanguage (line 600) | @Override
method match (line 606) | @Override
class CharsetRecog_8859_6 (line 614) | abstract static class CharsetRecog_8859_6 extends CharsetRecog_sbcs
method getName (line 651) | @Override
class CharsetRecog_8859_6_ar (line 658) | static class CharsetRecog_8859_6_ar extends CharsetRecog_8859_6
method getLanguage (line 667) | @Override
method match (line 673) | @Override
class CharsetRecog_8859_7 (line 681) | abstract static class CharsetRecog_8859_7 extends CharsetRecog_sbcs
method getName (line 718) | @Override
class CharsetRecog_8859_7_el (line 725) | static class CharsetRecog_8859_7_el extends CharsetRecog_8859_7
method getLanguage (line 734) | @Override
method match (line 740) | @Override
class CharsetRecog_8859_8 (line 749) | abstract static class CharsetRecog_8859_8 extends CharsetRecog_sbcs
method getName (line 786) | @Override
class CharsetRecog_8859_8_I_he (line 793) | static class CharsetRecog_8859_8_I_he extends CharsetRecog_8859_8
method getName (line 802) | @Override
method getLanguage (line 808) | @Override
method match (line 814) | @Override
class CharsetRecog_8859_8_he (line 823) | static class CharsetRecog_8859_8_he extends CharsetRecog_8859_8
method getLanguage (line 832) | @Override
method match (line 838) | @Override
class CharsetRecog_8859_9 (line 848) | abstract static class CharsetRecog_8859_9 extends CharsetRecog_sbcs
method getName (line 885) | @Override
class CharsetRecog_8859_9_tr (line 892) | static class CharsetRecog_8859_9_tr extends CharsetRecog_8859_9
method getLanguage (line 901) | @Override
method match (line 907) | @Override
class CharsetRecog_windows_1251 (line 916) | static class CharsetRecog_windows_1251 extends CharsetRecog_sbcs
method getName (line 960) | @Override
method getLanguage (line 966) | @Override
method match (line 972) | @Override
class CharsetRecog_windows_1256 (line 980) | static class CharsetRecog_windows_1256 extends CharsetRecog_sbcs
method getName (line 1024) | @Override
method getLanguage (line 1030) | @Override
method match (line 1036) | @Override
class CharsetRecog_KOI8_R (line 1044) | static class CharsetRecog_KOI8_R extends CharsetRecog_sbcs
method getName (line 1088) | @Override
method getLanguage (line 1094) | @Override
method match (line 1100) | @Override
class CharsetRecog_IBM424_he (line 1108) | abstract static class CharsetRecog_IBM424_he extends CharsetRecog_sbcs
method getLanguage (line 1130) | @Override
class CharsetRecog_IBM424_he_rtl (line 1136) | static class CharsetRecog_IBM424_he_rtl extends CharsetRecog_IBM424_he
method getName (line 1138) | @Override
method match (line 1149) | @Override
class CharsetRecog_IBM424_he_ltr (line 1156) | static class CharsetRecog_IBM424_he_ltr extends CharsetRecog_IBM424_he
method getName (line 1158) | @Override
method match (line 1170) | @Override
class CharsetRecog_IBM420_ar (line 1178) | abstract static class CharsetRecog_IBM420_ar extends CharsetRecog_sbcs
method getLanguage (line 1202) | @Override
class CharsetRecog_IBM420_ar_rtl (line 1209) | static class CharsetRecog_IBM420_ar_rtl extends CharsetRecog_IBM420_ar
method getName (line 1218) | @Override
method match (line 1223) | @Override
class CharsetRecog_IBM420_ar_ltr (line 1231) | static class CharsetRecog_IBM420_ar_ltr extends CharsetRecog_IBM420_ar
method getName (line 1240) | @Override
method match (line 1245) | @Override
FILE: src/main/java/com/ibm/icu/text/CharsetRecognizer.java
class CharsetRecognizer (line 25) | abstract class CharsetRecognizer {
method getName (line 30) | abstract String getName();
method getLanguage (line 36) | public String getLanguage()
method match (line 50) | abstract CharsetMatch match(CharsetDetector det);
FILE: src/main/java/org/billthefarmer/editor/Editor.java
class Editor (line 126) | @SuppressWarnings("deprecation")
method onCreate (line 459) | @Override
method setListeners (line 672) | private void setListeners()
method onRestoreInstanceState (line 818) | @Override
method onPause (line 859) | @Override
method onSaveInstanceState (line 907) | @Override
method onCreateOptionsMenu (line 921) | @Override
method onPrepareOptionsMenu (line 931) | @Override
method onOptionsItemSelected (line 1080) | @Override
method onBackPressed (line 1189) | @Override
method onActivityResult (line 1221) | @Override
method dispatchTouchEvent (line 1244) | @Override
method onKeyDown (line 1252) | @Override
method editClicked (line 1351) | private void editClicked(MenuItem item)
method viewClicked (line 1384) | private void viewClicked(MenuItem item)
method newFile (line 1399) | private void newFile()
method newFile (line 1428) | private void newFile(String text)
method getNewFile (line 1447) | private static File getNewFile()
method getDefaultFile (line 1455) | private static File getDefaultFile()
method defaultFile (line 1463) | private void defaultFile()
method lastFile (line 1482) | private void lastFile()
method setCharset (line 1510) | private void setCharset(MenuItem item)
method setTypeface (line 1517) | private void setTypeface(MenuItem item)
method alertDialog (line 1529) | private static void alertDialog(Context context, int title, int message,
method alertDialog (line 1546) | private static void alertDialog(Context context, int title,
method savePath (line 1561) | private void savePath(String path)
method openRecent (line 1611) | private void openRecent(MenuItem item)
method saveAs (line 1652) | private void saveAs()
method saveAsDialog (line 1727) | private static void saveAsDialog(Context context, String path,
method clearList (line 1752) | private void clearList()
method findAll (line 1761) | public void findAll()
method goTo (line 1770) | public void goTo()
type OnSeekBarChangeListener (line 1783) | public interface OnSeekBarChangeListener
method onProgressChanged (line 1785) | abstract void onProgressChanged(SeekBar seekBar, int progress);
method gotoDialog (line 1789) | private void gotoDialog(OnSeekBarChangeListener listener)
method print (line 1832) | @SuppressWarnings("deprecation")
method viewMarkdown (line 1873) | private void viewMarkdown()
method viewFileClicked (line 1918) | private void viewFileClicked(MenuItem item)
method openLastClicked (line 1925) | private void openLastClicked(MenuItem item)
method autoSaveClicked (line 1932) | private void autoSaveClicked(MenuItem item)
method wrapClicked (line 1939) | private void wrapClicked(MenuItem item)
method suggestClicked (line 1947) | private void suggestClicked(MenuItem item)
method highlightClicked (line 1963) | private void highlightClicked(MenuItem item)
method lightClicked (line 1972) | private void lightClicked(MenuItem item)
method darkClicked (line 1980) | private void darkClicked(MenuItem item)
method systemClicked (line 1988) | private void systemClicked(MenuItem item)
method whiteClicked (line 1996) | private void whiteClicked(MenuItem item)
method blackClicked (line 2004) | private void blackClicked(MenuItem item)
method retroClicked (line 2012) | private void retroClicked(MenuItem item)
method smallClicked (line 2020) | private void smallClicked(MenuItem item)
method mediumClicked (line 2029) | private void mediumClicked(MenuItem item)
method largeClicked (line 2038) | private void largeClicked(MenuItem item)
method setSizeAndTypeface (line 2047) | private void setSizeAndTypeface(int size, int type)
method aboutClicked (line 2059) | @SuppressWarnings("deprecation")
method recreate (line 2096) | private void recreate(Context context)
method openFile (line 2103) | private void openFile()
method getFile (line 2130) | private void getFile()
method getFile (line 2138) | private void getFile(File dir)
method getList (line 2183) | public static List<File> getList(File dir)
method openDialog (line 2220) | public static void openDialog(Context context, List<String> dirList,
method onRequestPermissionsResult (line 2274) | @Override
method readFile (line 2293) | private void readFile(Uri uri)
method resolveContent (line 2370) | private Uri resolveContent(Uri uri)
method saveCheck (line 2385) | private void saveCheck()
method saveFile (line 2397) | private void saveFile()
method saveFile (line 2426) | private void saveFile(File file)
method saveFile (line 2433) | private void saveFile(Uri uri)
method write (line 2451) | private void write(CharSequence text, File file)
method write (line 2480) | private void write(CharSequence text, OutputStream os)
method checkHighlight (line 2505) | private void checkHighlight()
method highlightText (line 2567) | private void highlightText()
method wordCountText (line 3033) | private void wordCountText()
method onActionModeStarted (line 3051) | @Override
method checkMode (line 3122) | private void checkMode(CharSequence text)
method loadText (line 3311) | private void loadText(CharSequence text)
class QueryTextListener (line 3366) | private class QueryTextListener
method onQueryTextChange (line 3378) | @Override
method onQueryTextSubmit (line 3435) | @Override
method readFile (line 3471) | private CharSequence readFile(File file)
class ScaleListener (line 3498) | private class ScaleListener
method onScale (line 3502) | @Override
method doFind (line 3514) | private void doFind(Context context, String search)
method doRead (line 3593) | private void doRead(Context context, Uri uri)
FILE: src/main/java/org/billthefarmer/editor/FileAdapter.java
class FileAdapter (line 38) | public class FileAdapter extends BaseAdapter
method FileAdapter (line 67) | public FileAdapter(Context context, List<File> files)
method getCount (line 110) | @Override
method getItem (line 116) | @Override
method getItemId (line 122) | @Override
method getView (line 129) | @Override
FILE: src/main/java/org/billthefarmer/editor/FileUtils.java
class FileUtils (line 48) | public class FileUtils
method FileUtils (line 97) | private FileUtils()
method getExtension (line 108) | public static String getExtension(String uri)
method isLocal (line 130) | public static boolean isLocal(String url)
method isMediaUri (line 140) | public static boolean isMediaUri(Uri uri)
method getUri (line 151) | public static Uri getUri(File file)
method getPathWithoutFilename (line 162) | public static File getPathWithoutFilename(File file)
method getMimeType (line 193) | public static String getMimeType(File file)
method getMimeType (line 209) | public static String getMimeType(Context context, Uri uri)
method isExternalStorageDocument (line 220) | public static boolean isExternalStorageDocument(Uri uri)
method isDownloadsDocument (line 231) | public static boolean isDownloadsDocument(Uri uri)
method isMediaDocument (line 242) | public static boolean isMediaDocument(Uri uri)
method isGooglePhotosUri (line 252) | public static boolean isGooglePhotosUri(Uri uri)
method fileProviderPath (line 263) | public static String fileProviderPath(Uri uri)
method getDisplayName (line 328) | public static String getDisplayName(Context context, Uri uri,
method getSize (line 369) | public static long getSize(Context context, Uri uri,
method getDataColumn (line 411) | public static String getDataColumn(Context context, Uri uri,
method getPath (line 454) | public static String getPath(final Context context, final Uri uri)
method getFile (line 603) | public static File getFile(Context context, Uri uri)
method getReadableFileSize (line 623) | public static String getReadableFileSize(long size)
method getThumbnail (line 662) | public static Bitmap getThumbnail(Context context, File file)
method getThumbnail (line 676) | public static Bitmap getThumbnail(Context context, Uri uri)
method getThumbnail (line 691) | @SuppressWarnings("deprecation")
method createGetContentIntent (line 747) | public static Intent createGetContentIntent()
FILE: src/main/java/org/billthefarmer/editor/NewFile.java
class NewFile (line 30) | public class NewFile extends Activity
method onCreate (line 35) | @Override
FILE: src/main/java/org/billthefarmer/editor/OpenFile.java
class OpenFile (line 54) | public class OpenFile extends Activity
method onCreate (line 66) | @Override
method onRequestPermissionsResult (line 212) | @Override
method onActivityResult (line 232) | @Override
method getFile (line 252) | private void getFile(File dir)
Condensed preview — 168 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (675K chars).
[
{
"path": ".github/workflows/build.yml",
"chars": 291,
"preview": "# Build on push and PR events\non:\n push:\n branches:\n - master\n tags-ignore:\n - '*'\n pull_request:\n\njob"
},
{
"path": ".github/workflows/release.yml",
"chars": 631,
"preview": "# Release on new tags\non:\n push:\n tags:\n - 'v*'\n\njobs:\n release:\n runs-on: ubuntu-latest\n steps:\n -"
},
{
"path": ".gitignore",
"chars": 68,
"preview": ".gradle/\nbuild/\nlocal.properties\n*.iml\n.idea/\ndata/\n*.orig\n*~\n*.apk\n"
},
{
"path": "Charset.md",
"chars": 1110,
"preview": "# Character set\n\n"
},
{
"path": "LICENSE",
"chars": 35141,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "Mode.md",
"chars": 1224,
"preview": "# Mode line\n\nIf a line of text is found within the first or last two or three lines\nof the file which matches the mode l"
},
{
"path": "README.md",
"chars": 10894,
"preview": "#  Editor \n google()\n }\n\n dependencies {\n classpath 'co"
},
{
"path": "docs/404.html",
"chars": 1491,
"preview": "<!DOCTYPE html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en-gb\" lang=\"en-gb\">\n<head>\n <meta name=\"generator"
},
{
"path": "docs/categories/index.xml",
"chars": 578,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\n<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n <"
},
{
"path": "docs/css/custom.css",
"chars": 257,
"preview": "table, th, td {\n border: none;\n}\n\ntd {\n vertical-align: top;\n padding: 0;\n}\n\nsection.page h1,\nsection.page h3 {"
},
{
"path": "docs/css/styles.css",
"chars": 3174,
"preview": "html, body {\n font-family: \"Open Sans\", sans-serif;\n color: #363636;\n height: 100%;\n}\n\n@media (min-width: 48em) {\n h"
},
{
"path": "docs/index.html",
"chars": 27336,
"preview": "<!DOCTYPE html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en-gb\" lang=\"en-gb\">\n<head>\n <meta name=\"generator"
},
{
"path": "docs/index.xml",
"chars": 23366,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\n<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n <"
},
{
"path": "docs/introduction/index.xml",
"chars": 1715,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\n<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n <"
},
{
"path": "docs/sitemap.xml",
"chars": 3950,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\n xm"
},
{
"path": "docs/tags/index.xml",
"chars": 554,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\n<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n <"
},
{
"path": "docs/using/index.xml",
"chars": 22334,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\n<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n <"
},
{
"path": "fastlane/metadata/android/en/changelogs/1193.txt",
"chars": 52,
"preview": " * Add serif and sans typeface\n * Update mime types\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/162.txt",
"chars": 61,
"preview": "* Update file provider URI resolution\n* Update build scripts\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/163.txt",
"chars": 69,
"preview": "* Character set detection and selection\n* File size check on loading\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/164.txt",
"chars": 32,
"preview": "* Update Portuguese translation\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/165.txt",
"chars": 55,
"preview": "* Update French translation\n* Remove menu radio buttons"
},
{
"path": "fastlane/metadata/android/en/changelogs/166.txt",
"chars": 35,
"preview": "* Add fix for OxygenOS, android 11\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/167.txt",
"chars": 29,
"preview": "* Ellipsize open recent menu\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/168.txt",
"chars": 33,
"preview": "* Fix ellipsize open recent menu\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/169.txt",
"chars": 53,
"preview": "* Change charset detector to Mozilla UniversalChardet"
},
{
"path": "fastlane/metadata/android/en/changelogs/170.txt",
"chars": 17,
"preview": " * Update themes\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/171.txt",
"chars": 25,
"preview": " * Add new file shortcut\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/172.txt",
"chars": 69,
"preview": " * Optional character set detection\n * Hungarian translation updated\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/173.txt",
"chars": 80,
"preview": " * Add Emacs Org syntax highlighting\n * Update shell script syntax highlighting\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/174.txt",
"chars": 28,
"preview": " * Add Japanese translation\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/175.txt",
"chars": 42,
"preview": " * Fix Japanese grammar\n * Fix save check\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/176.txt",
"chars": 19,
"preview": " * Add goto dialog\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/177.txt",
"chars": 20,
"preview": " * Add print option\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/178.txt",
"chars": 28,
"preview": " * Add Ukranian translation\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/179.txt",
"chars": 74,
"preview": " * Update save as dialog\n * Update goto dialog\n * Update save content URI\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/180.txt",
"chars": 37,
"preview": " * Update file picker, intent filter\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/181.txt",
"chars": 25,
"preview": " * Update text selection\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/182.txt",
"chars": 19,
"preview": " * Add white theme\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/183.txt",
"chars": 30,
"preview": " * Update black, retro themes\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/184.txt",
"chars": 28,
"preview": " * Update themes, shortcuts\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/185.txt",
"chars": 24,
"preview": " * Add open last option\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/186.txt",
"chars": 46,
"preview": " * Add system theme\n * Add open file shortcut\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/187.txt",
"chars": 28,
"preview": " * Check recent files exist\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/188.txt",
"chars": 30,
"preview": " * Add Belarusian translation\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/189.txt",
"chars": 24,
"preview": " * Fix recent file list\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/190.txt",
"chars": 16,
"preview": " * Update icons\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/191.txt",
"chars": 20,
"preview": " * Fix search issue\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/192.txt",
"chars": 31,
"preview": " * Add Basque (eu) translation\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/194.txt",
"chars": 68,
"preview": " * Add Arabic translation\n * Add keyboard shortcut\n * Add typefaces\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/195.txt",
"chars": 26,
"preview": " * Add keyboard shortcuts\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/196.txt",
"chars": 73,
"preview": " * Update Slavic translations\n * Update text resizing\n * Update new file\n"
},
{
"path": "fastlane/metadata/android/en/changelogs/197.txt",
"chars": 90,
"preview": " * Add Dart and Rust highlighting\n * Update German translation\n * Update SDK, build tools\n"
},
{
"path": "fastlane/metadata/android/en/full_description.txt",
"chars": 771,
"preview": "This is a very simple generic text editor which may be used standalone or to show or edit any sort of text file from ano"
},
{
"path": "fastlane/metadata/android/en/short_description.txt",
"chars": 27,
"preview": "Simple generic text editor\n"
},
{
"path": "fastlane/metadata/android/en/title.txt",
"chars": 7,
"preview": "Editor\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/162.txt",
"chars": 87,
"preview": "* Fájlszolgáltató URI feloldásának frissítése\n* Összeállítási parancsfájlok frissítése\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/163.txt",
"chars": 82,
"preview": "* Karakterkészlet felismerése és kiválasztása\n* Fájlméret ellenőrzése betöltéskor\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/164.txt",
"chars": 31,
"preview": "* Portugál fordítás frissítése\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/165.txt",
"chars": 69,
"preview": "* Francia fordítás frissítése\n* Menü választógombjainak eltávolítása\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/166.txt",
"chars": 58,
"preview": "* Javítás hozzáadása OxygenOS és Android 11 rendszerekhez\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/167.txt",
"chars": 51,
"preview": "* Legutóbbi megnyitása menü hármasponttal ellátása\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/168.txt",
"chars": 63,
"preview": "* Legutóbbi megnyitása menü hármasponttal ellátásának javítása\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/169.txt",
"chars": 83,
"preview": "* Karakterkészlet-felismerő megváltoztatása a Mozilla UniversalChardet megoldására\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/170.txt",
"chars": 20,
"preview": " * Témák frissítése\n"
},
{
"path": "fastlane/metadata/android/hu/changelogs/171.txt",
"chars": 37,
"preview": " * Új fájl hozzáadása gyorsbillentyű\n"
},
{
"path": "fastlane/metadata/android/hu/full_description.txt",
"chars": 1017,
"preview": "Ez egy nagyon egyszerű, általános szövegszerkesztő, amely önállóan is, vagy bármilyen szöveges fájl egy másik alkalmazás"
},
{
"path": "fastlane/metadata/android/hu/short_description.txt",
"chars": 37,
"preview": "Egyszerű, általános szövegszerkesztő\n"
},
{
"path": "fastlane/metadata/android/hu/title.txt",
"chars": 11,
"preview": "Szerkesztő\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/162.txt",
"chars": 37,
"preview": "* ファイルプロバイダの URI 解析を更新\n* ビルドスクリプトの更新\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/163.txt",
"chars": 34,
"preview": "* 文字セットの検出と選択\n* 読み込み時のファイルサイズチェック\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/164.txt",
"chars": 15,
"preview": "* ポルトガル語の翻訳を更新\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/165.txt",
"chars": 15,
"preview": "* ポルトガル語の翻訳を更新\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/166.txt",
"chars": 33,
"preview": "* OxygenOS、android 11の修正を追加しました。\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/167.txt",
"chars": 19,
"preview": "* 最近開いたメニューを楕円形にする\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/168.txt",
"chars": 22,
"preview": "* 最近使ったメニューの楕円の大きさを修正\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/169.txt",
"chars": 42,
"preview": "* 文字コード検出器をMozilla UniversalChardetに変更する。\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/170.txt",
"chars": 14,
"preview": " * テーマのアップデート\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/171.txt",
"chars": 20,
"preview": " * 新規ファイルショートカットの追加\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/172.txt",
"chars": 32,
"preview": " * オプションの文字セット検出\n * ハンガリー語翻訳を更新\n"
},
{
"path": "fastlane/metadata/android/ja/changelogs/173.txt",
"chars": 55,
"preview": " * Emacs Orgのシンタックスハイライトの追加\n * シェルスクリプトのシンタックスハイライトを更新\n"
},
{
"path": "fastlane/metadata/android/ja/full_description.txt",
"chars": 425,
"preview": "これは非常にシンプルな汎用テキストエディタで、スタンドアロンで使用することも、他のアプリからあらゆる種類のテキストファイルを表示または編集することもできます。ファイルマネージャーや同様のアプリでテキストファイルを選択すると、テキストファイル"
},
{
"path": "fastlane/metadata/android/ja/short_description.txt",
"chars": 16,
"preview": "シンプルな汎用テキストエディタ\n"
},
{
"path": "fastlane/metadata/android/ja/title.txt",
"chars": 6,
"preview": "エディター\n"
},
{
"path": "gradle/wrapper/gradle-wrapper.properties",
"chars": 201,
"preview": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributi"
},
{
"path": "gradle.properties",
"chars": 92,
"preview": "android.nonTransitiveRClass=false\nandroid.nonFinalResIds=false\norg.gradle.jvmargs=-Xmx1536M\n"
},
{
"path": "gradlew",
"chars": 8047,
"preview": "#!/bin/sh\n\n#\n# Copyright © 2015-2021 the original authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "gradlew.bat",
"chars": 2674,
"preview": "@rem\n@rem Copyright 2015 the original author or authors.\n@rem\n@rem Licensed under the Apache License, Version 2.0 (the \""
},
{
"path": "src/main/AndroidManifest.xml",
"chars": 3629,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmln"
},
{
"path": "src/main/java/android/support/v4/content/FileProvider.java",
"chars": 35514,
"preview": "/*\n * Copyright (C) 2013 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice"
},
{
"path": "src/main/java/com/ibm/icu/text/CharsetDetector.java",
"chars": 22812,
"preview": "// © 2016 and later: Unicode, Inc. and others.\n// License & terms of use: http://www.unicode.org/copyright.html\n/**\n****"
},
{
"path": "src/main/java/com/ibm/icu/text/CharsetMatch.java",
"chars": 9236,
"preview": "// © 2016 and later: Unicode, Inc. and others.\n// License & terms of use: http://www.unicode.org/copyright.html\n/**\n****"
},
{
"path": "src/main/java/com/ibm/icu/text/CharsetRecog_2022.java",
"chars": 6387,
"preview": "// © 2016 and later: Unicode, Inc. and others.\n// License & terms of use: http://www.unicode.org/copyright.html\n/*\n*****"
},
{
"path": "src/main/java/com/ibm/icu/text/CharsetRecog_UTF8.java",
"chars": 3404,
"preview": "// © 2016 and later: Unicode, Inc. and others.\n// License & terms of use: http://www.unicode.org/copyright.html\n/**\n****"
},
{
"path": "src/main/java/com/ibm/icu/text/CharsetRecog_Unicode.java",
"chars": 6828,
"preview": "// © 2016 and later: Unicode, Inc. and others.\n// License & terms of use: http://www.unicode.org/copyright.html\n/*\n ****"
},
{
"path": "src/main/java/com/ibm/icu/text/CharsetRecog_mbcs.java",
"chars": 22887,
"preview": "// © 2016 and later: Unicode, Inc. and others.\n// License & terms of use: http://www.unicode.org/copyright.html\n/*\n ****"
},
{
"path": "src/main/java/com/ibm/icu/text/CharsetRecog_sbcs.java",
"chars": 87904,
"preview": "// © 2016 and later: Unicode, Inc. and others.\n// License & terms of use: http://www.unicode.org/copyright.html\n/*\n ****"
},
{
"path": "src/main/java/com/ibm/icu/text/CharsetRecognizer.java",
"chars": 1960,
"preview": "// © 2016 and later: Unicode, Inc. and others.\n// License & terms of use: http://www.unicode.org/copyright.html\n/**\n****"
},
{
"path": "src/main/java/org/billthefarmer/editor/Editor.java",
"chars": 116452,
"preview": "///////////////////////////////////////////////////////////////////////////////\n//\n// Editor - Text editor for Android\n"
},
{
"path": "src/main/java/org/billthefarmer/editor/FileAdapter.java",
"chars": 6951,
"preview": "////////////////////////////////////////////////////////////////////////////////\n//\n// Editor - Text editor for Android"
},
{
"path": "src/main/java/org/billthefarmer/editor/FileUtils.java",
"chars": 23236,
"preview": "/*\n * Copyright (C) 2018 OpenIntents.org\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ma"
},
{
"path": "src/main/java/org/billthefarmer/editor/NewFile.java",
"chars": 2049,
"preview": "////////////////////////////////////////////////////////////////////////////////\n//\n// Editor - Text editor for Android"
},
{
"path": "src/main/java/org/billthefarmer/editor/OpenFile.java",
"chars": 9554,
"preview": "////////////////////////////////////////////////////////////////////////////////\n//\n// Editor - Text editor for Android"
},
{
"path": "src/main/res/color/text_color_retro.xml",
"chars": 279,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n <item a"
},
{
"path": "src/main/res/drawable/ic_add_black_24dp.xml",
"chars": 325,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_add_white_24dp.xml",
"chars": 325,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_edit_black_24dp.xml",
"chars": 456,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_edit_white_24dp.xml",
"chars": 456,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_folder_open_black_24dp.xml",
"chars": 424,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_folder_open_white_24dp.xml",
"chars": 424,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_image_black_24dp.xml",
"chars": 425,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_image_white_24dp.xml",
"chars": 425,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_list_black_24dp.xml",
"chars": 422,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_list_white_24dp.xml",
"chars": 422,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_reply_black_24dp.xml",
"chars": 352,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_reply_white_24dp.xml",
"chars": 352,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_save_black_24dp.xml",
"chars": 458,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_save_white_24dp.xml",
"chars": 458,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_sd_storage_black_24dp.xml",
"chars": 428,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_sd_storage_white_24dp.xml",
"chars": 428,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_stop_black_24dp.xml",
"chars": 303,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_stop_white_24dp.xml",
"chars": 303,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_videocam_black_24dp.xml",
"chars": 409,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_videocam_white_24dp.xml",
"chars": 409,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_volume_up_black_24dp.xml",
"chars": 502,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/drawable/ic_volume_up_white_24dp.xml",
"chars": 502,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\""
},
{
"path": "src/main/res/layout/custom.xml",
"chars": 469,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<TextView\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmln"
},
{
"path": "src/main/res/layout/edit.xml",
"chars": 953,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ScrollView\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xm"
},
{
"path": "src/main/res/layout/file.xml",
"chars": 467,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<TextView\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmln"
},
{
"path": "src/main/res/layout/open_file.xml",
"chars": 1997,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n "
},
{
"path": "src/main/res/layout/save_path.xml",
"chars": 763,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n "
},
{
"path": "src/main/res/layout/seek_bar.xml",
"chars": 607,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n "
},
{
"path": "src/main/res/layout/wrap.xml",
"chars": 731,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ScrollView\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xm"
},
{
"path": "src/main/res/menu/main.xml",
"chars": 5704,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:to"
},
{
"path": "src/main/res/values/arrays.xml",
"chars": 1054,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string-array name=\"typefaces\">\n <item>arial</item>\n <item>b"
},
{
"path": "src/main/res/values/attrs.xml",
"chars": 721,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <declare-styleable name=\"Editor\">\n\n <attr name=\"application\" fo"
},
{
"path": "src/main/res/values/colours.xml",
"chars": 184,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <color name=\"colorRetroForeground\">#ff00ff00</color>\n <color name"
},
{
"path": "src/main/res/values/strings.xml",
"chars": 5485,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xml"
},
{
"path": "src/main/res/values/styles.xml",
"chars": 13449,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources\n xmlns:tools=\"http://schemas.android.com/tools\"\n tools:ignore=\"N"
},
{
"path": "src/main/res/values-ar/strings.xml",
"chars": 5015,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xml"
},
{
"path": "src/main/res/values-be/strings.xml",
"chars": 2889,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Рэдактар</string>\n\n <string name=\"search\">"
},
{
"path": "src/main/res/values-de/strings.xml",
"chars": 3100,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Editor</string>\n\n <string name=\"newFile\">N"
},
{
"path": "src/main/res/values-el/strings.xml",
"chars": 3072,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Επεξεργαστής</string>\n\n <string name=\"newF"
},
{
"path": "src/main/res/values-es/strings.xml",
"chars": 3012,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Editor</string>\n\n <string name=\"newFile\">N"
},
{
"path": "src/main/res/values-eu/strings.xml",
"chars": 2989,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Editor</string>\n\n <string name=\"newFile\">B"
},
{
"path": "src/main/res/values-fa/strings.xml",
"chars": 4490,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">ویرایشگر</string>\n\n <string name=\"newFile\""
},
{
"path": "src/main/res/values-fr/strings.xml",
"chars": 4698,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Editor</string>\n\n <string name=\"newFile\">N"
},
{
"path": "src/main/res/values-hu/strings.xml",
"chars": 3051,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Szerkesztő</string>\n\n <string name=\"newFil"
},
{
"path": "src/main/res/values-is/strings.xml",
"chars": 2949,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Ritill</string>\n\n <string name=\"newFile\">N"
},
{
"path": "src/main/res/values-it/strings.xml",
"chars": 2977,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Editor</string>\n\n <string name=\"newFile\">N"
},
{
"path": "src/main/res/values-ja/strings.xml",
"chars": 2892,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">エディター</string>\n\n <string name=\"newFile\">新規"
},
{
"path": "src/main/res/values-ku-rIQ/strings.xml",
"chars": 3196,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">دەستکاریکەر</string>\n\n <string name=\"newFi"
},
{
"path": "src/main/res/values-lv/strings.xml",
"chars": 2973,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Redaktors</string>\n\n <string name=\"newFile"
},
{
"path": "src/main/res/values-nl/strings.xml",
"chars": 3011,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Tekstbewerker</string>\n\n <string name=\"new"
},
{
"path": "src/main/res/values-pl/strings.xml",
"chars": 2950,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Editor</string>\n\n <string name=\"newFile\">N"
},
{
"path": "src/main/res/values-pt/strings.xml",
"chars": 3361,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Editor</string>\n\n <string name=\"newFile\">N"
},
{
"path": "src/main/res/values-pt-rBR/strings.xml",
"chars": 3216,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Editor</string>\n\n <string name=\"newFile\">N"
},
{
"path": "src/main/res/values-ru/strings.xml",
"chars": 2912,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Редактор</string>\n\n <string name=\"search\">"
},
{
"path": "src/main/res/values-tr/strings.xml",
"chars": 3228,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Düzenleyici</string>\n\n <string name=\"newFi"
},
{
"path": "src/main/res/values-uk/strings.xml",
"chars": 4843,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">Редактор</string>\n\n <string name=\"newFile\""
},
{
"path": "src/main/res/values-zh-rCN/strings.xml",
"chars": 2506,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">编辑器</string>\n\n <string name=\"newFile\">新</s"
},
{
"path": "src/main/res/values-zh-rTW/strings.xml",
"chars": 2731,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"appName\">編輯器</string>\n\n <string name=\"newFile\">新增</"
},
{
"path": "src/main/res/xml/filepaths.xml",
"chars": 154,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<paths xmlns:android=\"http://schemas.android.com/apk/res/android\">\n <cache-path "
},
{
"path": "src/main/res/xml/shortcuts.xml",
"chars": 591,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shortcuts\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xml"
}
]
// ... and 1 more files (download for full content)
About this extraction
This page contains the full source code of the billthefarmer/editor GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 168 files (617.7 KB), approximately 187.9k tokens, and a symbol index with 326 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.