Why Wordpad++ over Wordpad? - Epic 4G Q&A, Help & Troubleshooting

Hi all. Can someone who uses Notepad++ explain why you use this program over Notepad? I ask because of course, I already have Notepad and Notepad++ does not appear to be readily available. Does it offer any advantage to editing .xmls or something else?

I think you actually mean Notepad++, and here's a quick summary of its features according to Wikipedia:
Features
Some of its general features include:
Tabbed document interface
Drag-and-drop
Multiple Clipboard (plugin required)
Split screen editing and synchronized scrolling
Spell checker (requires Aspell) (Spell checker does not distinguish between text and code)
Supports text encoding formats such as Unicode, for international writing systems
Find and replace over multiple documents
File comparison
Zooming
Programming languages
Running under Mac OS X using the Wine compatibility layer.
It also includes features for source code editing:
Auto-completion
Bookmarks
Syntax highlighting and syntax folding
Brace and indent highlighting
Regular expression find and replace
Speech synthesis
FTP Browser (plug-in included in standard installation)
Macro recording and execution.
Various tools such as line sorting, text encoding conversion, text folding
File status auto-detection
Plugins for multiline regular expression search and replace
Notepad++ supports syntax highlighting and syntax folding for 48 programming, scripting, and markup languages. It attempts to automatically detect the language that a given file uses, using a modifiable list of file extension bindings. Users may also manually set the current language, overriding the extension's default language. The program also supports autocompletion for a subset of the API of some programming languages.
Users can also define their own language (for syntax highlighting) and its respective API (for autocompletion) by using the built-in User Language Define System. Users may configure the syntax highlighting's font styles per element, per language, and the resulting formatted script may be printed in full-color (WYSIWYG). Additionally, Notepad++ displays indent guidelines when source code is indented with tab characters, and highlights closing braces, brackets and tags.
Plugins
Notepad++ has support for macros and plugins. Currently, there are 27 official plugins for Notepad++, 10 of which are included by default in the program. The first plugin to be included in the program was "TextFX", which includes features such as W3C validation for HTML and CSS, text sorting, character case alteration and quote handling.
Hopefully that answers your question!

Ha I did mean Notepad++!! That's probably why I couldn't find much info on Wordpad lol.

I use it cause it allows you to save stuff as unix/linux. When you write code with regular notepad it adds under
un-wanted characters messing **** up. Notepad ++ dont do this
Sent from my SPH-D700 using Tapatalk

Thanks. I need to download that notepad++ tonight
Sent from my SPH-D700 using XDA App

running_the_dream said:
Hi all. Can someone who uses Notepad++ explain why you use this program over Notepad? I ask because of course, I already have Notepad and Notepad++ does not appear to be readily available. Does it offer any advantage to editing .xmls or something else?
Click to expand...
Click to collapse
I use it because of all of the features. There is no comparison. The main features I use are the code formatting, comparison, advanced search and replace & spell checker just to name a few.
Sent from my SPH-D700

Sent from my SPH-D700 using XDA App

Related

Bit of a problem with an app Im making...

Hi,
I am new to android development so sorry if this question has a really obvious answer. I am hoping to make a game for the platform but to start with I have just tried to make a basic layout of 4 buttons to move in different directions and then have a background and an image in front which will be my sprite and move across the screen depending on what button is pressed.
At the moment I have created two views. One via the main xml document and the other through the java code itself. The java code one contains the background and image to be drawn and the main.xml contains the buttons.
At the moment I have my code set up like this:
this.setContentView(R.layout.main); <<<<<<<<<< xml
this.setContentView(this.myTestView); <<<<<<<<<<<<<< java
I am aware that I am basically setting one and then setting the other over the top of it and this means that only one of these views will appear. Does anyone know of a way I can use these views in conjunction so that both the images frm the java file and the layout from the xml can both be used?
Cheers for any help.
ExO
As far as I know you cannot do this. By calling setContentView you are overwriting the object which held the content previously.
Once the view is set you can add items in code after this call.
Why do you not have all the elements in the xml?
aw ok, i wasnt sure if it was possible or not. The reason I did it like this was just because I'm still learning to use both languages. Aswell as that I am using droiddraw to generate my xml and couldnt see an option within that to add images etc. Cheers for the reply .

OpenGL ES Text Rendering Tutorial

I wrote a tutorial on using TrueType/OpenType font files to render text in OpenGL ES 1.0/2.0 which many people have found helpful. Seeing as this new forum is for app developers I thought I'd share it here too
It works by loading a font file (.ttf or .otf) and then generates a font bitmap, which is then used to render dynamic text very quickly. I created this to allow me to ship only a small font file with my projects, instead of multi-resolution generated font bitmaps for each required size. This means perfect quality text at any resolution and small size.
The tutorial includes full source code (in Java + Scala) which can be used in any project - the code is licensed under the CC0 1.0 public domain license so it is free and open for any use.
Link

[Q] String manipulation

Is there any possibility to display only the X characters from a string?
Like the LEFT$ function in Basic for example.
I'm trying to fit a certain string in a box (see image below).
Thank you,
Tikl
I found it!
You have to use a rich text module (I was using only text) and the [tr] BB code will format the text as you will.
It even adds '...' at the end of a trimmed text!
Tikl

Android Command-Line Icon Converter

Hi there,
As the process of creating Icons for Android was very annoying to me (design an icon, export it for 5 densities, change the color to make it "disabled", save it again 5 times ...) I wrote a command-line tool for this task. I guess it will help everyone who doesn't like this time consuming process too I know there are online tools to convert one icon to the right sizes for each density, but have a look at what icon-converter can do:
The main idea is to have one SVG file for each icon. You do not have to have different SVG files for the states (e.g. enabled and disabled) but you can use icon-converter to change one or more colors in the icon.
Having all the SVG's, you can simply write a .sh script to "compile" all the icons at once, meaning that icon-converter creates all PNG's with the given settings (density, colors, scale, even versioning is supported, renaming files so that you can find them after compiling). The PNG's are then stored directly in the right drawable-directories. E.g. when you change an icon which has different states, you only have to execute your script once and do not have to export PNG's by yourself.
Please have a look at this tool, there are some examples online:
iconconverter.android-msapps.com
It runs on Linux and Windows.
Do you have any suggestions to improve the software?
Best
Markus

Question Letterboxed apps (not filling screen) – wrong/limited aspect ratio?

Does anybody have any apps that don't fill the entire screen and have a big black empty area at the bottom? They work fine otherwise but just don't use the whole screen.
FWIW these are APKs I brought from the old phone with 18.5:9 ratio vs 21:9 for this one, which I cannot update because they've been abandoned/obsoleted by the developer. I suspect they've declared a maximum screen ratio in their manifest so that's why they're letterboxed but I'm not sure how I can override it (without modifying the APK).
On Samsung ROMs you get an automatic prompt to override (and a per-app override in the settings) but I can't find anything like that on Sony.
I've extracted the manifest from 3 such apps and indeed don't see anything about android:maxAspectRatio and android:resizeableActivity="false" in any of them.
Adding two screenshots to explain what I'm talking about. They're from one of the affected apps (Agile – com.sauce.agile), letterboxed to 16:9 due to the 21:9 screen of the phone. Notice the large black area at the bottom in portrait and the black bands on the sides in landscape.
Found a blog post that explains:
We recommend that you design your app to support aspect ratios of 2.1 or higher. For this, you would add the following to the <application> element:
<meta-data android:name="android.max_aspect" android:value="2.1" />
If you don't set a value, and android:resizeableActivity is not true, then the maximum aspect ratio defaults to 1.86 (roughly 16:9) and your app will not take advantage of the extra screen space.
Click to expand...
Click to collapse
Guess that explain what's going on with the affected apps. Now to see if this can be overwritten at runtime somehow...
I found an easy method for fixing this problem using the APK Editor app (also attached to this post) (which, ironically, is itself affected by letterboxing).
Open APK Editor.
Tap "Select Apk from App" if you want to fix an already installed app, or "Select an Apk File" if you have the .apk but it's not installed.
Select "Common Edit".
Scroll all the way to the bottom to "Target SDK Version" and replace it with the value 24.
Press "Save".
That's it, APK Editor will save a modified .apk to ApkEditor/tmp/gen_signed.apk which doesn't have the letterboxing problem anymore.
Please note that the modified .apk has the exact same name and version as the installed app so if it's already installed you won't be able to install the modified one (the installer thinks you're trying to install the same app). There are several solutions:
If you don't care about losing your app data, just uninstall it then install the modified .apk.
You can take a backup with ADB or an app like Titanium, MyBackup Pro or OandBackupX, uninstall the app, install the modified one, then restore just the app data.
When you edit the app with APK Editor bump the Version Code and Version one number up. This will make the installer think you're installing an updated version. Probably a good idea to do this anyway.
Read this in case the target SDK version doesn't fix the problem!
As I wrote above, the letterboxing appears for apps that don't have an explicit android.max_aspect declared in their manifest. If that's the case, Android checks to see if the app manifest has declared android:resizeableActivity instead. If it didn't do that either, SDK versions before 24 would assume the activity to NOT be resizeable (default value boolean "false") and use letterboxing. This is what's happening for the apps I listead in post #2. For them the fix is easy: change the SDK version to 24; starting with that version the default is "true" for resizeable activity, which removes the letterboxing.
If changing the target SDK version didn't work for you, or if the app was already targeting 24 or later, it means it's probably declaring either android.max_aspect or android:resizeableActivity in its AndroidManifest.xml. You will need to use APK Editor to do a "Simple Edit" instead of "Common Edit", save a copy of the AndroidManifest.xml file, edit it (please make sure you edit it with a text editor that won't mess it up), set android.max_aspect to 2.1 and/or android:resizeableActivity to true (or remove them, but if you do make sure the target SDK version is 24 or greater) then replace the original AndroidManifest.xml in APK Editor and save the modified .apk.

Categories

Resources