Skip to main content



      Home
Home » Newcomers » Newcomers » Super/Subscript in Eclipse
Super/Subscript in Eclipse [message #1750017] Thu, 15 December 2016 03:07 Go to next message
Eclipse UserFriend
I'm teaching myself java using Eclipse on Opensuse and when I need math/science functions, I like to add them to the comments.
Being somewhat pedantic I prefer to type it in form, so I would to know if there is a way for me to easily add super and sub script in comments in Eclipse?
Re: Super/Subscript in Eclipse [message #1750090 is a reply to message #1750017] Thu, 15 December 2016 20:16 Go to previous messageGo to next message
Eclipse UserFriend
Technically it'll be rendered as web pages when you generate a JavaDoc site, and show as such in the Eclipse UI. You'll want to be extra careful not to write broken HTML in your JavaDoc.
Re: Super/Subscript in Eclipse [message #1750091 is a reply to message #1750090] Thu, 15 December 2016 22:07 Go to previous messageGo to next message
Eclipse UserFriend
The only thing you can really do is copy+paste characters from somewhere (like a Word doc or a web page) into the Eclipse editor. Be mindful of the character encoding that's being used for your files, and as Nitin said make sure it doesn't look screwy in the rendered JavaDoc.
Re: Super/Subscript in Eclipse [message #1750095 is a reply to message #1750017] Fri, 16 December 2016 00:12 Go to previous message
Eclipse UserFriend
Thanks Nitin & Eric
I kind of figured that was the case - just making sure there wasn't a lazy way to placate my pedanticity ;/
As for encoding I stay with UTF-8 so hopefully using something closer to native with a big overlap with Eclipse, like kate, keeps the gremlins dry.
Again ta for the response.

As a final word:
a small program in KDE called KCharSelect allows you to add super/sub script to your comments - howsoever Eclipse gets real snarky if you try to add it to code ;}

[Updated on: Sat, 17 December 2016 05:07] by Moderator

Previous Topic:Context popup whited out
Next Topic:SWT Palette
Goto Forum:
  


Current Time: Wed Jul 23 21:10:32 EDT 2025

Powered by FUDForum. Page generated in 0.11972 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top