GithubHelp home page GithubHelp logo

jecelyin / 920-text-editor-old Goto Github PK

View Code? Open in Web Editor NEW
198.0 39.0 86.0 3.46 MB

new project

Home Page: https://github.com/jecelyin/920-text-editor-v2/

License: Other

Shell 0.01% PHP 0.18% C 17.70% C++ 20.94% Java 60.62% Makefile 0.39% HTML 0.17%

920-text-editor-old's Introduction

920 Text Editor

920 Text Editor is a powerful Android text editing app that enables you to edit your code anywhere and at anytime you can also use it as e-book reader to open text novel, it is like on Windows EmEditor, EditPlus so powerful.

Features:

  1. Multi Tab, you can open different files in different tabs to facilitate you in a different text of this switch to edit
  2. syntax highlighting:ASP, ActionScript, C/C++, C#, Erlang, Frink, HTML/XML/WML, CSS, JavaScript , Java, JSP, Perl, PowerShell , PHP, Python, Shell/Bash, Lua, SQL, VB/VBS, Tcl, TeX/LaTeX, Verilog, AutoHotKey , AutoLisp, Pascal, Fortran, ColdFusion, VHDL
  3. show line numbers
  4. show blank characters (tabs, line breaks)
  5. automatically detects the open file encoding, and you can also convert the current file encoding support: ISO-2022-CN, BIG5, EUC-TW, GBK, GB2312, ISO-8859-5, KOI8-R, WINDOWS-1251, MACCYRILLIC, IBM866, IBM855 , ISO-8859-7, WINDOWS-1253, ISO-8859-8, WINDOWS-1255, ISO-2022-JP, SHIFT_JIS, EUC-JP, ISO-2022-KR , EUC-KR, UTF-8, UTF-16BE / UTF-16LE, UTF-32BE / UTF-32LE / X-ISO-10646-UCS-4-34121 / X-ISO-10646-UCS-4-21431 , WINDOWS-1252
  6. easy toolbar, you can quickly doing a new file, open, save, save as, undo/redo , and some commonly used symbols, back to last edit location, etc.
  7. list of recently opened files history
  8. regular search, replace or replace all
  9. change the font and font size
  10. “Word wrap” switch
  11. lock the screen orientation in: auto, horizontal or vertical
  12. remember the last open file
  13. hide the soft keyboard, long press the edit area can be turn on
  14. long press the “edit area” you can convert selected text to uppercase or lowercase
  15. auto indent
  16. keep the screen in the awake state
  17. you can run at ROOT permissions
  18. easy’s file manager, you can delete or rename the file, or open with other application to view, copy/move etc. to manage files
  19. use the volume keys to quickly switch the display/hide the toolbar, full-screen mode
  20. preview the HTML file
  21. Color Picker
  22. you can use the “Preferences” menu “Donate” page to the donate it

##920文本编辑器 920文本编辑器是一款运行于Android手机上功能强大的文本编辑器,使用它你可以在任何地方都可以方便地查看或编辑你的代码, 你也可以将它当作电子书阅读器来打开txt小说,它就像Windows上的Emeditor, EditPlus那么实用强大 :-)

特色功能:

  1. 多标签,你可以在不同的标签打开不同的文件,方便你在不同的文本之本切换编辑
  2. 语法高亮:ASP, ActionScript, C/C++, C#, Erlang, Frink, HTML/XML/WML, CSS, JavaScript, Java, JSP, Perl, PowerShell , PHP, Python, Shell/Bash, Lua, SQL, VB/VBS, Tcl, TeX/LaTeX, Verilog, AutoHotKey, AutoLisp, Pascal
  3. 显示行号
  4. 显示空白字符(制表符,换行符)
  5. 自动检测打开的文件编码,同时你也可以转换当前文件编码,支持: ISO-2022-CN,BIG5,EUC-TW,GBK,GB2312,ISO-8859-5,KOI8-R,WINDOWS-1251,MACCYRILLIC,IBM866,IBM855 ,ISO-8859-7,WINDOWS-1253,ISO-8859-8,WINDOWS-1255,ISO-2022-JP,SHIFT_JIS,EUC-JP,ISO-2022-KR ,EUC-KR,UTF-8,UTF-16BE / UTF-16LE,UTF-32BE / UTF-32LE / X-ISO-10646-UCS-4-34121 / X-ISO-10646-UCS-4-21431 ,WINDOWS-1252
  6. 方便的工具栏,你可以快捷进行文件新建、打开、保存、另存为、撤销/重做、一些常用符号、返回上次编辑位置等等
  7. 最近打开的文件历史列表
  8. 正则查找、替换或替换全部
  9. 更改字体和字体大小
  10. “自动换行” 开关
  11. 锁定屏幕方向于:自动、横向或纵向
  12. 记住最后打开的文件
  13. 隐藏软键盘(即输入法),长按编辑区域可以切换显示输入法
  14. 长按编辑区域可以将选中的文字转换为大写或小写
  15. 自动缩进
  16. 保持屏幕常亮
  17. 获取ROOT权限
  18. 简易的文件管理器,你可以重合名或删除文件,或通过其它程序管理或打开文件
  19. 使用音量键快速切换显示/隐藏工具栏,全屏模式
  20. 预览HTML文件
  21. 强大的颜色拾取器
  22. 你可以通过“参数”菜单的“捐赠”页面来捐助它

Special thanks to donated friend (特别感谢捐赠了的朋友):

  • Sagar Nimje
  • Vincent Scholze
  • John Johnson
  • Mark R Turnbull
  • David
  • 陈 杰
  • mark luscher
  • Konrad Wetzel
  • Chuck Thomas Enterprises
  • David Black
  • Deborah Kraft
  • Antonello Casula
  • Megan Webb
  • Doug Freeze
  • Bradley Hertz
  • David Craig Barker
  • Edward Peckham
  • Toni Mäenpää
  • Michel Pitermann
  • Kevin Mears
  • Tom Louie
  • Cédric Heintz
  • 赵先聪
  • DAVID ARSO CIVIL
  • Meng Li
  • Visualdensity
  • Jesús Màrquez
  • Yoshimasa Ideguchi
  • Nathan Quinn
  • Vincent Scholze
  • Gerald Tan
  • ...

You can download from:

920-text-editor-old's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

920-text-editor-old's Issues

auto completion

can you add auto completion? for example the local vars, methods, keywords and maybe some commonly used blocks (such as the while loop).
thank you

default charset for txt-files

When opening a UTF-8 txt-file through a file-browser app like owncloud, the charset defaults to EUC/JP. Setting the project-ddefault in settings does not help.

Please make the charset-detection better or give the option to a really used default.

How to compile this project

When I import this project, I found that it used the Api which is invisible,so...,how to compile this object?

text scroll problem

Sometimes, the text doesn't scroll as expected: when the keyboard is on, and when entering a new line, instead of scrolling the previous lines up so we can still read what we type, then the text we're typing goes under the virtual keyboard and we can't read it any longer.

I can't find reasons when it occurs or when it doesn't, it seems to be random.

bug - when one of last opened files deleted - the apps crashed.

Bug - when check box in "Remember last opened" checked and than one of last opened files deleted - the apps crashed and not opens.
Tried on two devices - motorola defy+ with android 2.3 and on Nook with android 2.1.
If I manually edit last_files.xml file and delete that string with names so the app open right.
I will happy to help with testing to this project of the best text edit app !

Alexander

Crash on Nexus 10 on start up

The application crashes on launch when launched on a Nexus 10 running CyanogenMod 11 (Android 4.4.4). Reproduction steps are as follows:

  1. Launch app.
  2. Wait for application crash.

I have the stack trace below:

09-06 17:11:56.628: D/ActivityThread(4555): handleBindApplication:com.jecelyin.editor
09-06 17:11:56.628: D/ActivityThread(4555): setTargetHeapUtilization:0.75
09-06 17:11:56.633: D/ActivityThread(4555): setTargetHeapMinFree:524288
09-06 17:11:56.943: D/dalvikvm(4555): Trying to load lib /data/app-lib/com.jecelyin.editor-1/libhighlight.so 0x421f4188
09-06 17:11:56.943: D/dalvikvm(4555): Added shared lib /data/app-lib/com.jecelyin.editor-1/libhighlight.so 0x421f4188
09-06 17:11:56.943: D/dalvikvm(4555): No JNI_OnLoad found in /data/app-lib/com.jecelyin.editor-1/libhighlight.so 0x421f4188, skipping init
09-06 17:11:57.013: D/AndroidRuntime(4555): Shutting down VM
09-06 17:11:57.013: W/dalvikvm(4555): threadid=1: thread exiting with uncaught exception (group=0x41d62ce0)
09-06 17:11:57.018: E/AndroidRuntime(4555): FATAL EXCEPTION: main
09-06 17:11:57.018: E/AndroidRuntime(4555): Process: com.jecelyin.editor, PID: 4555
09-06 17:11:57.018: E/AndroidRuntime(4555): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jecelyin.editor/com.jecelyin.editor.JecEditor}: java.lang.NullPointerException
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2212)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2271)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.app.ActivityThread.access$800(ActivityThread.java:144)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.os.Handler.dispatchMessage(Handler.java:102)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.os.Looper.loop(Looper.java:136)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.app.ActivityThread.main(ActivityThread.java:5146)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at java.lang.reflect.Method.invokeNative(Native Method)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at java.lang.reflect.Method.invoke(Method.java:515)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at dalvik.system.NativeStart.main(Native Method)
09-06 17:11:57.018: E/AndroidRuntime(4555): Caused by: java.lang.NullPointerException
09-06 17:11:57.018: E/AndroidRuntime(4555):     at com.jecelyin.editor.JecEditor.bindEvent(JecEditor.java:860)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at com.jecelyin.editor.JecEditor.onCreate(JecEditor.java:341)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.app.Activity.performCreate(Activity.java:5231)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
09-06 17:11:57.018: E/AndroidRuntime(4555):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2169)
09-06 17:11:57.018: E/AndroidRuntime(4555):     ... 11 more

使用键盘过程中的问题

Hello:

再次过来打扰一下:

在使用外接键盘进行输入,出现漏字的问题,不知道作者有没有遇见过??

Thanks.

当从一个已经被销毁的activity中恢复时,会报“Class Not Found”错误,并且之前所有打开的文件都丢失

RT,这个问题非常令人困扰,每次编辑中打开UC或者QQ看看,等切回来时,就报一个非常长的Class Not Found错误,并且所有已经打开的文件都不在了。
重现BUG的方法:后台920编辑器,打开很多其他应用直到内存接近用完(此时后台的920编辑器Activity已经释放)。然后切换回920,此时一个大大的Class Not Found就弹出,并且吞噬一切~~~~

Force-Closing at Launch on several builds of LolliPop (CM.12) on LG-(G3)-D850 AT&T.Lte

I will try to remember to grab some logs, and more details of the system soon.

NOTES:
I really like this app, and it has been my 'go-to' text app on Android for several years now.

I am willing to try to repair the problem, but I am new to both Java and to native Android apps. I have experience debugging C#, HTML5, and other typical web languages.

It would be helpful if someone is willing to give me some hints. I'll do all the work, gather detailed info along the way, post it, but would likely need frequent tips/guidance. If that is acceptable, please let me know via email: [email protected] or sms/text: 909-486-3463

As a last resort?, the only remaining option I can think of would be for me to try and start a 'bounty' pool of funds for some dev-for-hire who will help out, perhaps at XDA or some other social-funding site?

Regards,
Paul

Too many intents

I saw that this is quite widely reported on the play store page. Can we limit the intents or provide a tick list?

Insert Tab don't work

I tried to insert tab keys but it dosen't work as expected. Instead it seems to switch trough the buttons.
I used Hacekrs Keyboard

Feature Request: Support Ctrl-<key> combos on external keyboards

I use a Logitech Portable USB keyboard with my tablet when doing text editing. 920 Text Editor recognizes the keyboard, and I can enter edit/text, but cursor movement that work in other editors don't work in 920.

In particular, I'd love to see
Ctrl-Left Arrow - previous word
Ctrl-Right Arrow - next word
Ctrl-Home - beginning of line
Ctrl-End - end of line
Ctrl-PgUp - top of screen
Ctrl-PgDn - end of screen

Thanks in advance,

from terminal, how to launch to edit file?

This may not be the right place to ask this, but I've been stumped for days and am in desperate need of help with this issue.

I would like to know how to launch the editor from terminal emulator (I need this for a script that I'm working on).

As an example, how would I open /storage/emulated/0/Download/test.txt for editing?

When I try this:
am start -a android.intent.action.EDIT -n com.jecelyin.editor/.JecEditor -d /storage/emulated/0/Download/test.txt

I get an error that includes "Permission Denial: startActivity asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL"

I'm not sure exactly what that's about, so I try to work around it with this:
am start --user 0 -a android.intent.action.EDIT -n com.jecelyin.editor/.JecEditor -d /storage/emulated/0/Download/test.txt

Now the editor starts, but it opens a new file and not the specified file. I've also tried different test files to exclude the possibility that test.txt is corrupt.

I'm stuck. Please help!


OS: CM11
Device: Moto G
Relevant apps: Terminal Emulator (jackpal.androidterm 1.0.65), 920 Text Editor (com.jecelyin.editor 12.11.23)

Improper syntax highlighting for JS

Code samples like the following are incorrectly highlighted:

function isPositiveZero(x) {
return 1 / x === 1 / 0;
}

The return statement is usually highlighted as a RegExp literal, with the triple equals highlighted, instead of two division statements. Similar highlighting issues are apparent with statements like these:

// both zeros are highlighted, neither should be
1 / 0;
0 / 1;

// highlights the x's and colon
a = x > 5 ? 5 / x : x / 5

// highlights all the way to the end of the file or until another '/' is found
a /= 5;

Android versions: 4.1.2 (stock phone), 4.4.2 (stock phone and CM11 nightly on tablet)

Tested on latest Google Play release.

Can't save after reloading some files

If we have more than one opened tab, when we close 920 text-editor, and re-open it after, the tabs reopen correctly if we checked the option to.

But when we edit the files, the title tab won't highlight in red and if we hit the save button it won't save anything.

If we switch to another tab and then switch back to the original tab, then the tabs of the edited files will turn in red, but it won't be possible again to save (if we exit the editor it won't save anything either, nor warn about possible data loss).

The current workaround is to either reload the files, or simply hit the "load" button, then exit the select file dialog: the expected behavior will come back and it will be possible to save the files again.

I experienced this bug on a nexus 4 running cyanogen mod (android 4.2.2), and a nexus 7 running vanilla google android (4.2.2 as well)

(using version 13.7.18, latest on the play store)

920 text editor gone from Google Play?

Hi,

I've had this editor installed on my devices for some time now and used it with great success.
I just received a new smartphone and tried to install it, but could not find it on the Play store anymore.

f-droid version does not register as editor properly

The version offered via F-Droid does not register as an Text-Editor, therefore it is not on the list and cant be choosen when opening arbitrary Textfiles.
After backing up the version from Play and installing it (I am on a Google-free Cyanogenmod) it worked properly.
Did not try the download-version yet.

Feature Request: Use custom font from ttf file

Although default Monospace font looks nice, I would like to use custom font like Consolas to view code. Some option to browse ttf file. My phone is not rooted, so I can't overwrite system fonts. Please implement this feature.

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.