You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

1

Sunday, April 5th 2015, 1:03pm

Syntax Highlighting, Snippets & Autocompletions

Well, after several thousand lines of code written i found this pretty important and did one for SublimeText 3. *smile*

See on github

For now it's optimised to fit my workflow.
So if you find it useful any feedback, suggestions for further development, criticism, or even pull requests would be appreciated. *smile*

This post has been edited 1 times, last edit by "a.pu" (May 11th 2019, 8:36am)


jordi

Intermediate

Posts: 464

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

2

Tuesday, April 7th 2015, 11:20am

That's great !! thanks so much for sharing this !!
everpano.com step beyond 360

This post has been edited 1 times, last edit by "jordi" (Apr 7th 2015, 11:31am)


3

Monday, April 13th 2015, 3:18pm

Great! *thumbsup*
Thanks!

Time to test Sublime ;-).
I didn't know that texteditor, but what I see looks good so far.

Best regards,
Klaus

Ibrendie

Trainee

Posts: 68

Location: The Netherlands

  • Send private message

4

Monday, April 13th 2015, 3:53pm

YES! Thank you very much!

How difficult would it be to add support for brackets.io ?

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

5

Monday, April 13th 2015, 11:50pm

Great! *thumbsup*


Time to test Sublime ;-).

This editor is one of the most popular for last years *smile*


YES! Thank you very much!

How difficult would it be to add support for brackets.io ?

That's quite a question, i'll see what i can do.

This post has been edited 2 times, last edit by "a.pu" (Apr 14th 2015, 8:16am)


6

Tuesday, April 14th 2015, 4:30pm

Useful! thanks! *thumbup* *thumbup* *thumbup* *thumbup*

benji33

Intermediate

Posts: 244

Location: France

Occupation: Senior Software engineer

  • Send private message

7

Wednesday, April 15th 2015, 3:00pm

*thumbsup* ... very good and lite editor.

Ibrendie

Trainee

Posts: 68

Location: The Netherlands

  • Send private message

8

Wednesday, April 15th 2015, 10:32pm

Great! *thumbsup*


Time to test Sublime ;-).

This editor is one of the most popular for last years *smile*


YES! Thank you very much!

How difficult would it be to add support for brackets.io ?

That's quite a question, i'll see what i can do.
I already started with a brackets.io Code Hinting (autocompletion) functionality for the static XML structure :) .

I just started today, so it will take a while. But brackets.io is also really populair for HTML, CSS and Javascript development.

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

9

Thursday, April 16th 2015, 7:32am

Ibrendie it's easier to reply here.

To see highlighting in work,
- Open any XML,
- Go to View -> Syntax -> Krpano Markup Language, or click on language name in bottom right corner of editor window,
- Go to Preferences -> Color Scheme -> User -> May Thunderstorm.

This post has been edited 1 times, last edit by "a.pu" (Apr 17th 2015, 8:31am)


a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

10

Monday, April 27th 2015, 11:15am

I have updated color scheme for better html and css editing experience, now it's based on Monokai dark.

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

11

Saturday, July 4th 2015, 9:18am

Made some bugfixes. *smile*

KiboOst

Trainee

Posts: 83

Location: France

Occupation: TD

  • Send private message

12

Monday, July 27th 2015, 4:16pm

Amazing !!!

I use SublimeText for years for all python, php etc and it is wonderful.

Anyway, your language works great with your theme, less with monokai which is the one I always use. You theme doesn't work great with other language, and switching themes each time is a pain.

Also, there is a problem with your language definition when there is ' character inside commands, like set(layer[panoTitle].html,L'autre );"

also, this works:

Source code

1
2
onclick="
        	loadscene(Pano6, null, MERGE, NOBLEND);"


But not this (all is blue):

Source code

1
onclick="loadscene(Pano6, null, MERGE, NOBLEND);"


Or this works:

Source code

1
2
3
4
5
6
7
<krpano>
	<scene name="myScene
	"
    	onstart="set(layer[mylayer].visible,true);"
    	/>
	</scene>
</krpano>


But not this:

Source code

1
2
3
4
5
6
<krpano>
	<scene name="myScene"
    	onstart="set(layer[mylayer].visible,true);"
    	/>
	</scene>
</krpano>

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

13

Friday, July 31st 2015, 3:57pm

Amazing !!!

I use SublimeText for years for all python, php etc and it is wonderful.

Anyway, your language works great with your theme, less with monokai which is the one I always use. You theme doesn't work great with other language, and switching themes each time is a pain.



I know Monokai to be most popular theme for code editing ever but when i tried to use it i had not enough colors for all entities. That's why i used Soda and nether thought Monokai was of that much importance. The only way is to make another color scheme, i'll try.

Also, there is a problem with your language definition when there is ' character inside commands, like set(layer[panoTitle].html,L'autre );"

also, this works:

Source code

1
2
onclick="
        	loadscene(Pano6, null, MERGE, NOBLEND);"


But not this (all is blue):

Source code

1
onclick="loadscene(Pano6, null, MERGE, NOBLEND);"




This is made on purpose, cause i've not found any way to define through regexp's whether a double-quoted string was just text or some code. In first case it should be blue, in second it should be parsed. So i persumed if double-quoted string starts with "\n" it should be a piece of code. Besides it provides a better looking code:

This post has been edited 3 times, last edit by "a.pu" (Aug 1st 2015, 8:21am)


herrpedro

Trainee

Posts: 140

Location: Lisbon

Occupation: Programmer/analyst

  • Send private message

14

Friday, July 31st 2015, 9:52pm

Thank you!
time to use sublime!

jeromebg

Professional

Posts: 779

Location: Angers - France

Occupation: Photographer

  • Send private message

15

Thursday, February 18th 2016, 1:03pm

Github link is down, can I find the files somewhere else ?
Thx

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

16

Tuesday, March 22nd 2016, 1:11pm

I published this repository back

https://github.com/apushkarev/Krpano-Markup-Language

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

17

Monday, April 18th 2016, 12:59pm

I have updated syn def with a bunch of new words which were added to language since 1.19pr1.

Now definition is completely up to date.

Monokai theme support is next to add...

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

18

Friday, September 23rd 2016, 7:44pm

More updates!

Added new instruction words, functions, constants and webVR plugin entirely.
All is up to 19.7, enjoy! *love*


Also for geeky coders i've developed dark stylesheet for krpano documentation on main site.
If you use code editor with dark theme, that makes it way more comfortable to work with docs.

Check this topic: Dark theme for krpano site

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

19

Tuesday, June 20th 2017, 10:39am

Updates!

- new words through past 9 months releases,
- SPACE INTENDATION support! *love*


Reagrding previoyus notes, I think writing like this:
set(layer[panoTitle].html,L'autre );

Is quite not good idea, I'd recommend use

Source code

1
&#39;
instead

a.pu

Trainee

  • "a.pu" started this thread

Posts: 80

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

20

Thursday, August 3rd 2017, 10:44pm

Massive updates!

- Monokai support!
- comment keyboard shortcut.

Thanks to Jordi for feedback and advice *smile*

This post has been edited 1 times, last edit by "a.pu" (Aug 3rd 2017, 10:56pm)


Similar threads