gedit

使用Eclipse搭建Android开发环境

故事扮演 提交于 2019-11-29 17:33:57
导读 本文就来介绍一下 Linux 如何使用Eclipse搭建Android开发环境安装,Java运行环境JDK(没这个Eclipse运行不起来),在这里我安装的是jdk-8u51-windows-i586,安装时按照提示,直接点击下一步,直到完成。 第一步: 安装Java运行环境JDK(没这个Eclipse运行不起来),在这里我安装的是 jdk-8u51-windows-i586 ,安装时按照提示,直接点击下一步,直到完成。 第二步: 进行验证自己是否把java的运行环境安装正确,需要打开cmd命令,在里面输入“ java -version ” 第三步: 安装android的开发环境:Eclipse 我这边有一个 压缩包 : eclipse-SDK-3.7.1-win32 解压安装 我们把JDK安装到这个路径: /usr/lib/jvm 如果没有这个目录(第一次当然没有),我们就新建一个目录 cd /usr/lib sudo mkdir jvm 建立好了以后,我们来到刚才下载好的压缩包的目录,解压到我们刚才新建的文件夹里面去,并且修改好名字方便我们管理 sudo tar zxvf ./jdk-7-linux-i586.tar.gz -C /usr/lib/jvm cd /usr/lib/jvm sudo mv jdk1.7.0_05/ jdk7 配置环境变量 gedit ~/

Option to display control characters in gedit

淺唱寂寞╮ 提交于 2019-11-29 04:26:30
问题 I'm a newbie to Linux. Is there a way to see the control characters in gedit. I went to options->preferences and all I got is option to see the line numbers of the text file. Is there any plugin that needs to be installed to see the same? I'm on Ubuntu 12.04 LTS and the gedit version is 3.4.1. 回答1: There is a gedit-plugins package available for Ubuntu. Install that and take a look at the Draw Spaces section in the gedit preferences. You can configure it to show spaces, tabs, line feeds etc.

Math in reStructuredText with LaTeX

拥有回忆 提交于 2019-11-28 14:46:31
问题 I would like to use a lightweight markup language to take notes in my college classes. My editor of choice is gedit, and I found reStructuredText Tools for Gedit, which will run the reStructuredText processor and render the HTML in a pane in gedit. This is great, and 80% of the way there. But for many of my classes I need to include math equations or greek characters in my notes. Although I'm not very familiar with LaTeX, my understanding is that it has these capabilities. How can I use LaTeX

Failure [INSTALL_FAILED_NO_MATCHING_ABIS]

我的梦境 提交于 2019-11-28 13:43:29
概述 Android 用 Genymotion 调试的时候,如果有 .so 的库的话,出现 Failure [INSTALL_FAILED_NO_MATCHING_ABIS] 错误,并且始终安装不上。一阵百度过后总算找到错误了,是因为模拟器实在 x86 的处理器上运行,而手机一般都是 RAM 架构的,所以得把模拟器刷成 ARM 的才行。 下载 Genymotion-ARM-Translation_v1.1.zip 可以到 官网下载 ,如果嫌速度太慢也得可以到 百度云 自动 Flash 将下载好的 Genymotion-ARM-Translation_v1.1.zip 拖拽到Genymotion模拟器里面,然后会有如下提示: 然后点击 OK 开始flash,最后如果一切顺利的话,将会看到如下的成功提示: 手动 Flash 本来 Genymotion 是支持自动Flash的但是有些时候自动flash就是会失败,所以这是后就只有手动来Flash了。 Windows的同学 首先 cmd 进到安装的 SDK 目录下的 platform-tools 目录: 输入: adb shell 输入: sh /system/bin/flash-archive.sh /sdcard/Download/Genymotion-ARM-Translation_v1.2.zip 最后重启模拟器 Ubuntu

Creating your own syntax highlighting in GEdit?

浪尽此生 提交于 2019-11-27 11:49:26
How do you add a 'keyword' to the GEdit list of keywords? I basiclly want to make the printf function look like a keyword. printf("Hello World\n"); GEdit uses GtkSourceView for its syntax highlighting. You should be able to find the c.lang file it uses to highlight C code by typing a command like this: $ locate gtksourceview | grep /c.lang Once you find the lang file, open it up in a text editor (it's an XML file) and near the bottom you'll see a list of keywords which you should be able to add printf to. Michael Clerx Thanks to Jeremy's post I found this page: http://projects.gnome.org

Creating executable files in Linux

被刻印的时光 ゝ 提交于 2019-11-27 11:39:47
One thing I plan to be doing is writing (painfully simple) Perl scripts, and I'd like to be able to run them without explicitly calling Perl from the terminal. I appreciate that, to do this, I need to grant them execute permissions. Doing this with chmod is easy enough, but it also seems like a slightly laborious extra step. What I would like is one of two things: Firstly, is there a way to set the execute flag when saving a file? Currently I'm experimenting with gedit and geany, but would be willing to switch to a similarly- (or better-) featured editor if it had this capability. Failing that

Creating your own syntax highlighting in GEdit?

主宰稳场 提交于 2019-11-26 18:06:26
问题 How do you add a 'keyword' to the GEdit list of keywords? I basiclly want to make the printf function look like a keyword. printf("Hello World\n"); 回答1: GEdit uses GtkSourceView for its syntax highlighting. You should be able to find the c.lang file it uses to highlight C code by typing a command like this: $ locate gtksourceview | grep /c.lang Once you find the lang file, open it up in a text editor (it's an XML file) and near the bottom you'll see a list of keywords which you should be able

Creating executable files in Linux

最后都变了- 提交于 2019-11-26 18:03:39
问题 One thing I plan to be doing is writing (painfully simple) Perl scripts, and I'd like to be able to run them without explicitly calling Perl from the terminal. I appreciate that, to do this, I need to grant them execute permissions. Doing this with chmod is easy enough, but it also seems like a slightly laborious extra step. What I would like is one of two things: Firstly, is there a way to set the execute flag when saving a file? Currently I'm experimenting with gedit and geany, but would be

Does “\d” in regex mean a digit?

故事扮演 提交于 2019-11-26 01:28:14
问题 I found that in 123 , \\d matches 1 and 3 but not 2 . I was wondering if \\d matches a digit satisfying what kind of requirement? I am talking about Python style regex. Regular expression plugin in Gedit is using Python style regex. I created a text file with its content being 123 Only 1 and 3 are matched by the regex \\d ; 2 is not. Generally for a sequence of digit numbers without other characters in between, only the odd order digits are matches, and the even order digits are not. For